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.
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.
- flutter_tts
A Flutter plugin for text-to-speech support across multiple platforms.
69Compare - stts
Speech-to-Text and Text-to-Speech Flutter plugin with offline-first capabilities.
72Compare - speech_to_text
Flutter plugin to expose device-specific speech-to-text recognition capabilities.
91Compare - speech_to_text_platform_interface
A common platform interface for the speech_to_text plugin.
75Compare