Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class SynthesizeLongAudioRequest.
The top-level message sent by the client for the
SynthesizeLongAudio
method.
Generated from protobuf message google.cloud.texttospeech.v1.SynthesizeLongAudioRequest
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
The resource states of the request in the form of |
↳ input |
Google\Cloud\TextToSpeech\V1\SynthesisInput
Required. The Synthesizer requires either plain text or SSML as input. While Long Audio is in preview, SSML is temporarily unsupported. |
↳ audio_config |
Google\Cloud\TextToSpeech\V1\AudioConfig
Required. The configuration of the synthesized audio. |
↳ output_gcs_uri |
string
Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: |
↳ voice |
Google\Cloud\TextToSpeech\V1\VoiceSelectionParams
Required. The desired voice of the synthesized audio. |
getParent
The resource states of the request in the form of
projects/*/locations/*
.
Returns | |
---|---|
Type | Description |
string |
setParent
The resource states of the request in the form of
projects/*/locations/*
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInput
Required. The Synthesizer requires either plain text or SSML as input.
While Long Audio is in preview, SSML is temporarily unsupported.
Returns | |
---|---|
Type | Description |
Google\Cloud\TextToSpeech\V1\SynthesisInput|null |
hasInput
clearInput
setInput
Required. The Synthesizer requires either plain text or SSML as input.
While Long Audio is in preview, SSML is temporarily unsupported.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\TextToSpeech\V1\SynthesisInput
|
Returns | |
---|---|
Type | Description |
$this |
getAudioConfig
Required. The configuration of the synthesized audio.
Returns | |
---|---|
Type | Description |
Google\Cloud\TextToSpeech\V1\AudioConfig|null |
hasAudioConfig
clearAudioConfig
setAudioConfig
Required. The configuration of the synthesized audio.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\TextToSpeech\V1\AudioConfig
|
Returns | |
---|---|
Type | Description |
$this |
getOutputGcsUri
Required. Specifies a Cloud Storage URI for the synthesis results. Must be
specified in the format: gs://bucket_name/object_name
, and the bucket
must already exist.
Returns | |
---|---|
Type | Description |
string |
setOutputGcsUri
Required. Specifies a Cloud Storage URI for the synthesis results. Must be
specified in the format: gs://bucket_name/object_name
, and the bucket
must already exist.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getVoice
Required. The desired voice of the synthesized audio.
Returns | |
---|---|
Type | Description |
Google\Cloud\TextToSpeech\V1\VoiceSelectionParams|null |
hasVoice
clearVoice
setVoice
Required. The desired voice of the synthesized audio.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\TextToSpeech\V1\VoiceSelectionParams
|
Returns | |
---|---|
Type | Description |
$this |