Create a new instance of Gemini TTS.
Environment Requirements:
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of the service account key file.apiKey
argument or the GOOGLE_API_KEY
environment variable.Configuration options for Gemini TTS
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
Receives text and returns synthesis in the form of a ChunkedStream
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.