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

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, as this will likely result in better prosody in the output audio. That being said, users are free to input text however they please.

getText

The raw text to be synthesized. It is recommended that each input contains complete, terminating sentences, as this will likely result in better prosody in the output audio. That being said, users are free to input text however they please.

Returns
Type Description
string

hasText

setText

The raw text to be synthesized. It is recommended that each input contains complete, terminating sentences, as this will likely result in better prosody in the output audio. That being said, users are free to input text however they please.

Parameter
Name Description
var string
Returns
Type Description
$this

getInputSource

Returns
Type Description
string