Rate this page:

DialogflowVoiceSelectionParameters

Description of which voice to use for speech synthesis.
Add the following line to your scenario code to use the interface:

require(Modules.AI);

Props

name

Copy URL
name: 

string

|

undefined

Optional. The name of the voice. If not set, the service chooses a voice based on the other parameters such as language_code and gender.

ssmlGender

Copy URL
ssmlGender: 

DialogflowSsmlVoiceGender

Optional. The preferred gender of the voice. If not set, the service chooses a voice based on the other parameters such as language_code and name. Note that this is only a preference, not requirement. If a voice of the appropriate gender is not available, the synthesizer should substitute a voice with a different gender rather than failing the request.