Cloud Text-to-Speech V1 Client - Class AdvancedVoiceOptions (2.6.0)

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

Used for advanced voice options.

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

Namespace

Google \ Cloud \ TextToSpeech \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ low_latency_journey_synthesis
bool

Only for Journey voices. If false, the synthesis is context aware and has a higher latency.

↳ relax_safety_filters
bool

Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only supported for accounts linked to Invoiced (Offline) Cloud billing accounts. Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT .

getLowLatencyJourneySynthesis

Only for Journey voices. If false, the synthesis is context aware and has a higher latency.

Returns
Type
Description
bool

hasLowLatencyJourneySynthesis

clearLowLatencyJourneySynthesis

setLowLatencyJourneySynthesis

Only for Journey voices. If false, the synthesis is context aware and has a higher latency.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getRelaxSafetyFilters

Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only supported for accounts linked to Invoiced (Offline) Cloud billing accounts.

Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT .

Returns
Type
Description
bool

setRelaxSafetyFilters

Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only supported for accounts linked to Invoiced (Offline) Cloud billing accounts.

Otherwise, will return result google.rpc.Code.INVALID_ARGUMENT .

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