Create a new instance of Rime TTS.
Configuration options for the TTS instance
apiKey
must be set to your Rime AI API key, either using the argument or by setting the
RIME_API_KEY
environmental variable.
Returns this TTS's capabilities
Returns the channel count of audio frames returned by this TTS
Returns the sample rate of audio frames returned by this TTS
Returns a SynthesizeStream that can be used to push text and receive audio data
Synthesize text to audio using Rime AI TTS.
Text to synthesize
A chunked stream of synthesized audio
Update TTS options after initialization
Partial options to update
An instance of a text-to-speech adapter.
Remarks
This class is abstract, and as such cannot be used directly. Instead, use a provider plugin that exports its own child TTS class, which inherits this class's methods.