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 \ V1Methods
__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. |
↳ multi_speaker_markup |
MultiSpeakerMarkup
Multi-speaker markup for Gemini TTS. 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 |
|
getMultiSpeakerMarkup
Multi-speaker markup for Gemini TTS. This field may not be used with any other voices.
| Returns | |
|---|---|
| Type | Description |
MultiSpeakerMarkup|null |
|
hasMultiSpeakerMarkup
setMultiSpeakerMarkup
Multi-speaker markup for Gemini TTS. This field may not be used with any other voices.
| Parameter | |
|---|---|
| Name | Description |
var |
MultiSpeakerMarkup
|
| 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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInputSource
| Returns | |
|---|---|
| Type | Description |
string |
|