Class VoiceSelectionParams (2.7.1)

VoiceSelectionParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Description of which voice to use for speech synthesis. .. attribute:: name

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

:type: str

Attribute

NameDescription
ssml_gender google.cloud.dialogflow_v2.types.SsmlVoiceGender
Optional. The preferred gender of the voice. If not set, the service will choose 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.