Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class Voice.
Description of a voice supported by the TTS service.
Generated from protobuf message google.cloud.texttospeech.v1.Voice
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ language_codes
array
The languages that this voice supports, expressed as BCP-47 language tags (e.g. "en-US", "es-419", "cmn-tw").
↳ name
string
The name of this voice. Each distinct voice has a unique name.
↳ ssml_gender
int
The gender of this voice.
↳ natural_sample_rate_hertz
int
The natural sample rate (in hertz) for this voice.
getLanguageCodes
The languages that this voice supports, expressed as BCP-47 language tags (e.g.
"en-US", "es-419", "cmn-tw").
Generated from protobuf field repeated string language_codes = 1;
Google\Protobuf\Internal\RepeatedField
setLanguageCodes
The languages that this voice supports, expressed as BCP-47 language tags (e.g.
"en-US", "es-419", "cmn-tw").
Generated from protobuf field repeated string language_codes = 1;
var
string[]
$this
getName
The name of this voice. Each distinct voice has a unique name.
Generated from protobuf field string name = 2;
string
setName
The name of this voice. Each distinct voice has a unique name.
Generated from protobuf field string name = 2;
var
string
$this
getSsmlGender
The gender of this voice.
Generated from protobuf field .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3;
int
setSsmlGender
The gender of this voice.
Generated from protobuf field .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3;
var
int
$this
getNaturalSampleRateHertz
The natural sample rate (in hertz) for this voice.
Generated from protobuf field int32 natural_sample_rate_hertz = 4;
int
setNaturalSampleRateHertz
The natural sample rate (in hertz) for this voice.
Generated from protobuf field int32 natural_sample_rate_hertz = 4;
var
int
$this