Google (Beta)
Google provides fast, reliable text-to-speech (TTS) with customizable voices.
Sample configuration
The following example shows a starting tts parameter configuration you can use when you Start a conversational AI agent.
The parameters listed on this page are validated for use with Conversational AI Engine. Required parameters must be provided as documented. Any additional parameters are passed through directly to the underlying vendor without validation. For a full list of supported options, refer to the Google documentation.
Key parameters
paramsrequired
- credentials stringrequired
The Google Cloud service account credentials JSON string used for authentication. Get your credentials from the Google Cloud Console.
- VoiceSelectionParams objectrequired
Show propertiesHide properties
- name stringrequired
The name of the voice to use, for example,
en-US-Chirp3-HD-Charonoren-US-Neural2-A. See supported voices for available voice names.
- AudioConfig objectnullable
Show propertiesHide properties
- speaking_rate numbernullable
The speed of speech. Valid range is
0.25to2.0, where1.0is the normal speed. Values less than1.0slow down the speech, while values greater than1.0speed it up. - sample_rate_hertz integernullable
The sample rate in Hertz for the audio output, for example,
24000or16000. The default value depends on the selected voice.