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.
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 "en-NZ"
, all "en-NZ"
voices will be returned. If you specify "no"
, both "no-\*"
(Norwegian) and "nb-\*"
(Norwegian Bokmal) voices will be returned.
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.
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.
var
string
$this
static::build
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 "en-NZ"
,
all "en-NZ"
voices will be returned. If you specify "no"
, both "no-\*"
(Norwegian) and "nb-\*"
(Norwegian Bokmal) voices will be
returned.