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
Get the model name/identifier for this TTS instance.
The model name if available, "unknown" otherwise.
Plugins should override this property to provide their model information.
Returns the channel count of audio frames returned by this TTS
Get the provider name for this TTS instance.
The provider name if available, "unknown" otherwise.
Plugins should override this property to provide their provider information.
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
Optional connOptions: APIConnectOptionsOptional abortSignal: AbortSignalA 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.