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 \ V1Methods
__construct
Constructor.
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
getInput
Required. The Synthesizer requires either plain text or SSML as input.
hasInput
clearInput
setInput
Required. The Synthesizer requires either plain text or SSML as input.
$this
getVoice
Required. The desired voice of the synthesized audio.
hasVoice
clearVoice
setVoice
Required. The desired voice of the synthesized audio.
$this
getAudioConfig
Required. The configuration of the synthesized audio.
hasAudioConfig
clearAudioConfig
setAudioConfig
Required. The configuration of the synthesized audio.
$this
static::build
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