ssmlGender property

String? ssmlGender
getter/setter pair

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.

Optional. Possible string values are:

  • "SSML_VOICE_GENDER_UNSPECIFIED" : An unspecified gender, which means that the client doesn't care which gender the selected voice will have.
  • "SSML_VOICE_GENDER_MALE" : A male voice.
  • "SSML_VOICE_GENDER_FEMALE" : A female voice.
  • "SSML_VOICE_GENDER_NEUTRAL" : A gender-neutral voice.

Implementation

core.String? ssmlGender;