Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeRequest (1.12.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ streaming_config StreamingSynthesizeConfig

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

↳ input StreamingSynthesisInput

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

getStreamingConfig

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

Returns
Type Description
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 StreamingSynthesizeConfig
Returns
Type Description
$this

getInput

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

Returns
Type Description
StreamingSynthesisInput|null

hasInput

setInput

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

Parameter
Name Description
var StreamingSynthesisInput
Returns
Type Description
$this

getStreamingRequest

Returns
Type Description
string