Expand description
Gemini text-to-speech model (generateContent with AUDIO modality).
Structs§
- Google
Speech Model - Text-to-speech model backed by the Gemini TTS models.
- Google
Speech Options - Speech options (
provider_options["google"]). - Prepared
Speech Request - A prepared speech request.
Constants§
- DEFAULT_
SAMPLE_ RATE - Sample rate assumed when the response media type carries none.
- DEFAULT_
VOICE - Voice used when none is requested.
- FAMILY
- Provider id family.
Functions§
- add_
wav_ header - Wraps signed 16-bit little-endian mono PCM in a 44-byte WAV header.
- parse_
sample_ rate - Sample rate encoded in a media type such as
audio/L16;codec=pcm;rate=24000.