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 \ V1Methods
__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 |
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 |
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 |
CustomPronunciations|null |
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 |
var |
CustomPronunciations
|
Returns | |
---|---|
Type | Description |
$this |