Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
ResembleTTS
Resemble AI Text-to-Speech provider plugin. Wraps the Resemble AI streaming synthesis API, which supports custom neural voice clones identified by UUID. Audio is returned as chunked WAV data for progressive playback.Constructor
Resemble AI API key. Falls back to the
RESEMBLE_API_KEY environment variable when None.UUID string that identifies the Resemble AI voice (custom or pre-built) to use for synthesis. Defaults to
"55592656". Retrieve voice UUIDs from the Resemble AI dashboard or the /voices API endpoint.Output audio sample rate in Hz. Defaults to
22050. Supported values: 8000, 16000, 22050, 32000, 44100, 48000.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.