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

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.

↳ custom_pronunciations
CustomPronunciations

Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.

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

getStreamingAudioConfig

Optional. The configuration of the synthesized audio.

Returns
Type
Description

hasStreamingAudioConfig

clearStreamingAudioConfig

setStreamingAudioConfig

Optional. The configuration of the synthesized audio.

Parameter
Name
Description
Returns
Type
Description
$this

getCustomPronunciations

Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations.

The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.

Returns
Type
Description

hasCustomPronunciations

clearCustomPronunciations

setCustomPronunciations

Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations.

The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: