Basic Synthesis
Simple Speak API
For convenience, usespeak() which handles synthesis and playback:
TTSOutput
The synthesis result object:| Property | Type | Description |
|---|---|---|
audioData | ByteArray | Synthesized audio bytes |
format | AudioFormat | Audio format (PCM, WAV, etc.) |
duration | Double | Duration in seconds |
phonemeTimestamps | List<TTSPhonemeTimestamp>? | Phoneme timing |
metadata | TTSSynthesisMetadata | Processing metrics |