Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
SpeechifyTTS
Speechify text-to-speech plugin using the SIMBA model family. Synthesises speech via the Speechify TTS API.simba-english is the
flagship English model offering the highest quality, lowest streaming
latency, and full SSML support. A broad catalogue of voices is available
through the Speechify voice library.
Constructor
Speechify API key. Falls back to the
SPEECHIFY_API_KEY environment variable when None.Speechify voice identifier. Defaults to
'kristy'. Browse the full catalogue at https://docs.speechify.ai/tts/voices.SIMBA model variant. Defaults to
'simba-english' (highest quality, lowest TTFB, full SSML + emotion control). 'simba-multilingual' adds cross-language support. 'simba-base' and 'simba-turbo' are deprecated.Output audio sample rate in Hz. Defaults to
24000.aclose
emit
The event to emit.
interrupt
off
The event the handler was registered for.
The handler to remove.
on
callback is omitted.
The event to listen for.
The handler to invoke when the event is emitted. If
None, a decorator is returned that registers the decorated function.The registered callback when
callback is provided, otherwise a decorator that registers and returns the function it wraps.on_first_audio_byte
A callable, optionally async, invoked with synthesis timing information when the first audio byte is emitted.
synthesize
The text to synthesize; coerced to a string if needed.