GoogleTTS
Google Cloud text-to-speech (TTS) provider. Themodel family must be consistent with voice; mismatches throw, and
an unknown family is passed through (routing falls back to the voice name).
Constructor
Google API key. Falls back to the
GOOGLE_API_KEY environment variable, then null.Service-account credentials as a JSON string. Default
null.Path to a service-account JSON key file. Default
null.Stream audio from the model. Default
true.Voice name to synthesize with (e.g.
'en-US-Neural2-F'). Default 'en-US-Neural2-F'.BCP-47 language code. Default
'en-US'.Voice model family (e.g.
'neural2', 'wavenet', 'chirp3-hd'). Must match the voice’s family; omit (default '') to let the voice decide. Known families: standard, wavenet, neural2, news, polyglot, studio, chirp, chirp-hd, chirp3-hd.Output audio sample rate in Hz. Default
24000.Speaking rate (1.0 = normal). Must be in
[0.25, 4.0]. Default null (provider default).Voice pitch in semitones (0 = normal). Must be in
[-20.0, 20.0]. Default null (provider default).Voice selection used as a fallback for
voice and languageCode when those are left at their defaults. Default null.close
closeEmitter
emit
getRuntimeConfig
interrupt
listenerCount
off
on
once
onFirstAudioByte
removeAllListeners
synthesize
text on the active session.