Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesisInput.
Input to be synthesized.
Generated from protobuf message google.cloud.texttospeech.v1.StreamingSynthesisInput
Namespace
Google \ Cloud \ TextToSpeech \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ text
string
The raw text to be synthesized. It is recommended that each input contains complete, terminating sentences, which results in better prosody in the output audio.
↳ markup
string
Markup for HD voices specifically. This field may not be used with any other voices.
↳ prompt
string
This is system instruction supported only for controllable voice models.
getText
The raw text to be synthesized. It is recommended that each input
contains complete, terminating sentences, which results in better prosody
in the output audio.
Returns
Type
Description
string
hasText
setText
The raw text to be synthesized. It is recommended that each input
contains complete, terminating sentences, which results in better prosody
in the output audio.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMarkup
Markup for HD voices specifically. This field may not be used with any
other voices.
Returns
Type
Description
string
hasMarkup
setMarkup
Markup for HD voices specifically. This field may not be used with any
other voices.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPrompt
This is system instruction supported only for controllable voice models.
Returns
Type
Description
string
hasPrompt
clearPrompt
setPrompt
This is system instruction supported only for controllable voice models.
[[["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 StreamingSynthesisInput (2.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.2 (latest)](/php/docs/reference/cloud-text-to-speech/latest/V1.StreamingSynthesisInput)\n- [2.2.1](/php/docs/reference/cloud-text-to-speech/2.2.1/V1.StreamingSynthesisInput)\n- [2.0.1](/php/docs/reference/cloud-text-to-speech/2.0.1/V1.StreamingSynthesisInput)\n- [1.12.2](/php/docs/reference/cloud-text-to-speech/1.12.2/V1.StreamingSynthesisInput)\n- [1.11.0](/php/docs/reference/cloud-text-to-speech/1.11.0/V1.StreamingSynthesisInput)\n- [1.10.0](/php/docs/reference/cloud-text-to-speech/1.10.0/V1.StreamingSynthesisInput)\n- [1.9.1](/php/docs/reference/cloud-text-to-speech/1.9.1/V1.StreamingSynthesisInput)\n- [1.8.5](/php/docs/reference/cloud-text-to-speech/1.8.5/V1.StreamingSynthesisInput)\n- [1.7.2](/php/docs/reference/cloud-text-to-speech/1.7.2/V1.StreamingSynthesisInput)\n- [1.6.1](/php/docs/reference/cloud-text-to-speech/1.6.1/V1.StreamingSynthesisInput)\n- [1.5.6](/php/docs/reference/cloud-text-to-speech/1.5.6/V1.StreamingSynthesisInput)\n- [1.4.5](/php/docs/reference/cloud-text-to-speech/1.4.5/V1.StreamingSynthesisInput) \nReference documentation and code samples for the Cloud Text-to-Speech V1 Client class StreamingSynthesisInput.\n\nInput to be synthesized.\n\nGenerated from protobuf message `google.cloud.texttospeech.v1.StreamingSynthesisInput`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ TextToSpeech \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getText\n\nThe raw text to be synthesized. It is recommended that each input\ncontains complete, terminating sentences, which results in better prosody\nin the output audio.\n\n### hasText\n\n### setText\n\nThe raw text to be synthesized. It is recommended that each input\ncontains complete, terminating sentences, which results in better prosody\nin the output audio.\n\n### getMarkup\n\nMarkup for HD voices specifically. This field may not be used with any\nother voices.\n\n### hasMarkup\n\n### setMarkup\n\nMarkup for HD voices specifically. This field may not be used with any\nother voices.\n\n### getInputSource"]]