Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesizeRequest.
Request message for the StreamingSynthesize
method. Multiple
StreamingSynthesizeRequest
messages are sent in one call.
The first message must contain a streaming_config
that
fully specifies the request configuration and must not contain input
. All
subsequent messages must only have input
set.
Generated from protobuf message google.cloud.texttospeech.v1.StreamingSynthesizeRequest
Namespace
Google \ Cloud \ TextToSpeech \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ streaming_config |
Google\Cloud\TextToSpeech\V1\StreamingSynthesizeConfig
StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a |
↳ input |
Google\Cloud\TextToSpeech\V1\StreamingSynthesisInput
Input to synthesize. Specified in all messages but the first in a |
getStreamingConfig
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize
call.
Returns | |
---|---|
Type | Description |
Google\Cloud\TextToSpeech\V1\StreamingSynthesizeConfig|null |
hasStreamingConfig
setStreamingConfig
StreamingSynthesizeConfig to be used in this streaming attempt. Only
specified in the first message sent in a StreamingSynthesize
call.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\TextToSpeech\V1\StreamingSynthesizeConfig
|
Returns | |
---|---|
Type | Description |
$this |
getInput
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize
call.
Returns | |
---|---|
Type | Description |
Google\Cloud\TextToSpeech\V1\StreamingSynthesisInput|null |
hasInput
setInput
Input to synthesize. Specified in all messages but the first in a
StreamingSynthesize
call.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\TextToSpeech\V1\StreamingSynthesisInput
|
Returns | |
---|---|
Type | Description |
$this |
getStreamingRequest
Returns | |
---|---|
Type | Description |
string |