Cloud Text-to-Speech V1 Client - Class SynthesizeSpeechRequest (1.9.1)

Reference documentation and code samples for the Cloud Text-to-Speech V1 Client class SynthesizeSpeechRequest.

The top-level message sent by the client for the SynthesizeSpeech method.

Generated from protobuf message google.cloud.texttospeech.v1.SynthesizeSpeechRequest

Namespace

Google \ Cloud \ TextToSpeech \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ input
Google\Cloud\TextToSpeech\V1\SynthesisInput

Required. The Synthesizer requires either plain text or SSML as input.

↳ voice
Google\Cloud\TextToSpeech\V1\VoiceSelectionParams

Required. The desired voice of the synthesized audio.

↳ audio_config
Google\Cloud\TextToSpeech\V1\AudioConfig

Required. The configuration of the synthesized audio.

getInput

Required. The Synthesizer requires either plain text or SSML as input.

Returns
Type
Description

hasInput

clearInput

setInput

Required. The Synthesizer requires either plain text or SSML as input.

Parameter
Name
Description
Returns
Type
Description
$this

getVoice

Required. The desired voice of the synthesized audio.

Returns
Type
Description

hasVoice

clearVoice

setVoice

Required. The desired voice of the synthesized audio.

Parameter
Name
Description
Returns
Type
Description
$this

getAudioConfig

Required. The configuration of the synthesized audio.

Returns
Type
Description

hasAudioConfig

clearAudioConfig

setAudioConfig

Required. The configuration of the synthesized audio.

Parameter
Name
Description
Returns
Type
Description
$this

static::build

Parameters
Name
Description
input
Google\Cloud\TextToSpeech\V1\SynthesisInput

Required. The Synthesizer requires either plain text or SSML as input.

voice
Google\Cloud\TextToSpeech\V1\VoiceSelectionParams

Required. The desired voice of the synthesized audio.

audioConfig
Google\Cloud\TextToSpeech\V1\AudioConfig

Required. The configuration of the synthesized audio.

Create a Mobile Website
View Site in Mobile | Classic
Share by: