Class Voice (2.0.0)

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

Description of a voice supported by the TTS service.

Attributes

NameDescription
language_codes Sequence[str]
The languages that this voice supports, expressed as BCP-47 __ language tags (e.g. "en-US", "es-419", "cmn-tw").
name str
The name of this voice. Each distinct voice has a unique name.
ssml_gender .cloud_tts.SsmlVoiceGender
The gender of this voice.
natural_sample_rate_hertz int
The natural sample rate (in hertz) for this voice.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.