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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeResponse (2.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.2 (latest)](/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesizeResponse)\n- [2.2.1](/php/docs/reference/cloud-text-to-speech/2.2.1/V1.StreamingSynthesizeResponse)\n- [2.0.1](/php/docs/reference/cloud-text-to-speech/2.0.1/V1.StreamingSynthesizeResponse)\n- [1.12.2](/php/docs/reference/cloud-text-to-speech/1.12.2/V1.StreamingSynthesizeResponse)\n- [1.11.0](/php/docs/reference/cloud-text-to-speech/1.11.0/V1.StreamingSynthesizeResponse)\n- [1.10.0](/php/docs/reference/cloud-text-to-speech/1.10.0/V1.StreamingSynthesizeResponse)\n- [1.9.1](/php/docs/reference/cloud-text-to-speech/1.9.1/V1.StreamingSynthesizeResponse)\n- [1.8.5](/php/docs/reference/cloud-text-to-speech/1.8.5/V1.StreamingSynthesizeResponse)\n- [1.7.2](/php/docs/reference/cloud-text-to-speech/1.7.2/V1.StreamingSynthesizeResponse)\n- [1.6.1](/php/docs/reference/cloud-text-to-speech/1.6.1/V1.StreamingSynthesizeResponse)\n- [1.5.6](/php/docs/reference/cloud-text-to-speech/1.5.6/V1.StreamingSynthesizeResponse)\n- [1.4.5](/php/docs/reference/cloud-text-to-speech/1.4.5/V1.StreamingSynthesizeResponse) \nReference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesizeResponse.\n\n`StreamingSynthesizeResponse` is the only message returned to the\nclient by `StreamingSynthesize` method. A series of zero or more\n`StreamingSynthesizeResponse` messages are streamed back to the client.\n\nGenerated from protobuf message `google.cloud.texttospeech.v1.StreamingSynthesizeResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ TextToSpeech \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAudioContent\n\nThe audio data bytes encoded as specified in the request. This is\nheaderless LINEAR16 audio with a sample rate of 24000.\n\n### setAudioContent\n\nThe audio data bytes encoded as specified in the request. This is\nheaderless LINEAR16 audio with a sample rate of 24000."]]