Cloud Text-to-Speech V1 Client - Class StreamingSynthesisInput (2.2.2)

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.

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

getInputSource

Returns
Type Description
string