Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
RimeTTS
Rime AI Text-to-Speech provider plugin. Wraps the Rime AI speech synthesis API, which provides low-latency, high-quality streaming TTS across multiple voice models. The defaultmist model offers a broad catalogue of English speakers suited for
conversational and agent use cases.
Constructor
Rime AI API key. Falls back to the
RIME_API_KEY environment variable when None.Voice/speaker identifier to use for synthesis. Defaults to
"river". Available speakers depend on the chosen model_id; example cross-model voices include "astra", "luna", "celeste", "masonry", "albion", and "cove". Consult the Rime voices catalogue at https://docs.rime.ai/api-reference/voices for the full list.Rime model identifier. Defaults to
"mist". Known options: "mist" / "mistv2": fast, streaming-optimised conversational model. "coda": Rime’s most realistic conversational voices. "v1": legacy model.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.