Skip to main content
Create a streaming TTS engine instance for incremental speech synthesis with chunk callbacks and built-in PCM playback. This is ideal for generating and playing audio as it’s synthesized, providing a more responsive user experience. For one-shot batch synthesis, use createTTS() instead.

Parameters

Same as createTTS() - see there for full parameter documentation.

Returns

Promise<StreamingTtsEngine>
StreamingTtsEngine
A streaming TTS engine instance.

Stream Handlers

TtsStreamHandlers

Callbacks for streaming events.

TtsStreamChunk

TtsStreamController

Controller returned by generateSpeechStream().

Examples

Basic Streaming

Stream with Built-in Playback

Progress Indicator

Cancel Generation

Multi-Speaker Streaming

Stream to File

Stream with Speed Control

Error Handling

See Also