Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class ListVoicesRequest.
The top-level message sent by the client for the ListVoices method.
Generated from protobuf message google.cloud.texttospeech.v1.ListVoicesRequest
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ language_code |
string
Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify |
getLanguageCode
Optional. Recommended.
BCP-47 language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify "en-NZ",
all "en-NZ" voices will be returned. If you specify "no", both
"no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices will be
returned.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLanguageCode
Optional. Recommended.
BCP-47 language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify "en-NZ",
all "en-NZ" voices will be returned. If you specify "no", both
"no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices will be
returned.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameter | |
|---|---|
| Name | Description |
languageCode |
string
Optional. Recommended.
BCP-47 language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify |
| Returns | |
|---|---|
| Type | Description |
ListVoicesRequest |
|