enum

TTS::Voice::SsmlVoiceGender

Inherits Enum < Comparable < Value < Object

Gender of the voice as described in SSML voice element.

Constants

SSML_VOICE_GENDER_UNSPECIFIED = 0

An unspecified gender. In VoiceSelectionParams, this means that the client doesn't care which gender the selected voice will have. In the Voice field of ListVoicesResponse, this may mean that the voice doesn't fit any of the other categories in this enum, or that the gender of the voice isn't known.

MALE = 1

A male voice.

FEMALE = 2

A female voice.

NEUTRAL = 3

A gender-neutral voice.

Instance methods

female?

Returns true if this enum value equals FEMALE

Source
male?

Returns true if this enum value equals MALE

Source
neutral?

Returns true if this enum value equals NEUTRAL

Source
ssml_voice_gender_unspecified?

Returns true if this enum value equals SSML_VOICE_GENDER_UNSPECIFIED

Source