Skip to content
pubscout

flutter_tts

4.2.5, released 10 months ago by eyedeadevelopment.com

A Flutter plugin for text-to-speech support across multiple platforms.

$ flutter pub add flutter_tts
Source repository

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.

Works with

Packages commonly used together with flutter_tts: ones it builds on, ones built on it, and its own family.