Skip to content
pubscout

text_to_speech

0.2.3, released 5 years ago by an unverified publisher

Flutter plugin providing Text-To-Speech (TTS) service for Android, iOS, web, and macOS.

WASM-ready
$ flutter pub add text_to_speech
Source repository

What it does

Allows Flutter apps to convert text into spoken audio. It supports speaking, stopping, pausing, resuming, and configuring volume, rate, pitch, language, and voices across multiple platforms.

AI-written summary of version 0.2.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to synthesize text into speech across Android, iOS, web, and macOS.
  • You want to configure speech rate, pitch, volume, and select specific languages or voices.

Skip it when

  • You need Linux or Windows implementations, which are not currently supported.
  • You need utterance status listeners, which are currently pending/todo.

Strengths

  • Supports multiple platforms including Android, iOS, web, and macOS.
  • Provides controls for volume, rate, pitch, language, and voice selection.

Weaknesses

  • Missing Windows and Linux implementations.
  • Utterance status listener is listed as a TODO.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

Android minimum SDK version 21, and applications targeting SDK 30 need to declare TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE in the queries elements of Android Manifest. iOS minimum version 7.0, macOS minimum version 10.14.

import 'package:text_to_speech/text_to_speech.dart';

TextToSpeech tts = TextToSpeech();
String text = 'Hello, Good Morning!';
tts.speak(text);

Alternatives

Packages that do the same job and could replace text_to_speech.