flutter_tts
4.2.5, released 10 months ago by eyedeadevelopment.com
A Flutter plugin for text-to-speech support across multiple platforms.
What it does
It allows your app to convert text into spoken audio, control speech rate, volume, and pitch, query available voices and languages, and synthesize text to a file across Android, iOS, Web, Windows, and macOS.
AI-written summary of version 4.2.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need your Flutter app to read text out loud to users
- You need to synthesize text into audio files on mobile platforms
Skip it when
- You only need simple UI playback without text conversion features
- You require complex server-side audio streaming pipelines
Strengths
- Supports a wide range of platforms including Android, iOS, Web, Windows, and macOS
- Provides fine-grained control over speech properties like pitch, rate, volume, and specific voices
Weaknesses
- Requires platform-specific configuration such as updating the minimum Android SDK or Kotlin versions
- Some advanced features like pause/resume or speech marks have platform-specific restrictions or workarounds
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires Android minimum SDK 21 and Kotlin version 1.9.10 updates. Android 11+ target apps need an intent action declaration in the manifest for TTS service queries.
FlutterTts flutterTts = FlutterTts();
await flutterTts.setLanguage("en-US");
await flutterTts.setSpeechRate(1.0);
await flutterTts.speak("Hello World");Alternatives
Packages that do the same job and could replace flutter_tts.
- 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 - stts
Speech-to-Text and Text-to-Speech Flutter plugin with offline-first capabilities.
72Compare - deepgram_speech_to_text
Deepgram client for Dart and Flutter supporting Speech-to-Text and Text-to-Speech features.
69Compare
Works with
Packages commonly used together with flutter_tts: ones it builds on, ones built on it, and its own family.