Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Flutter
iOS, Android
Turn text into audio
// Get the audio back final audio = await RunAnywhere.tts.synthesize('Hello from RunAnywhere'); // Play it final handle = RunAnywhere.tts.speak('Hello from RunAnywhere');
Future<Audio> synthesize(String text, {TtsOptions? options}) Stream<AudioChunk> synthesizeStream(String text, {TtsOptions? options}) SpeechHandle speak(String text, {TtsOptions? options}) Future<void> stop() Future<List<Voice>> voices()
speak
stop
final audio = await RunAnywhere.tts.synthesize( 'Hello', options: TtsOptions(voice: 'en_US-amy-medium', speed: 1.1), );
voice
String?
language
String
speed
double
pitch
format
AudioFormat
sampleRate
int
await RunAnywhere.tts.stop();
import 'dart:io'; final audio = await RunAnywhere.tts.synthesize('Save me'); await File('${directory.path}/out.wav').writeAsBytes(audio.samples);
Audio
duration