Cloud Text-to-Speech V1 Client - Class StreamingSynthesizeConfig (2.0.0)

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

Provides configuration information for the StreamingSynthesize request.

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

Namespace

Google \ Cloud \ TextToSpeech \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ voice VoiceSelectionParams

Required. The desired voice of the synthesized audio.

↳ streaming_audio_config StreamingAudioConfig

Optional. The configuration of the synthesized audio.

getVoice

Required. The desired voice of the synthesized audio.

Returns
Type Description
VoiceSelectionParams|null

hasVoice

clearVoice

setVoice

Required. The desired voice of the synthesized audio.

Parameter
Name Description
var VoiceSelectionParams
Returns
Type Description
$this

getStreamingAudioConfig

Optional. The configuration of the synthesized audio.

Returns
Type Description
StreamingAudioConfig|null

hasStreamingAudioConfig

clearStreamingAudioConfig

setStreamingAudioConfig

Optional. The configuration of the synthesized audio.

Parameter
Name Description
var StreamingAudioConfig
Returns
Type Description
$this