Class VoiceSelectionParams (2.12.2)

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

Description of which voice to use for a synthesis request.

Attributes

NameDescription
language_code str
Required. The language (and potentially also the region) of the voice expressed as a `BCP-47
name str
The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code and gender.
ssml_gender google.cloud.texttospeech_v1.types.SsmlVoiceGender
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.
custom_voice google.cloud.texttospeech_v1.types.CustomVoiceParams
The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will choose the custom voice matching the specified configuration.

Inheritance

builtins.object > proto.message.Message > VoiceSelectionParams