Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeResponse (1.12.1)

Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesizeResponse.

StreamingSynthesizeResponse is the only message returned to the client by StreamingSynthesize method. A series of zero or more StreamingSynthesizeResponse messages are streamed back to the client.

Generated from protobuf message google.cloud.texttospeech.v1.StreamingSynthesizeResponse

Namespace

Google \ Cloud \ TextToSpeech \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ audio_content string

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

getAudioContent

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

Returns
Type Description
string

setAudioContent

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

Parameter
Name Description
var string
Returns
Type Description
$this