Class: Google::Apis::TexttospeechV1::AdvancedVoiceOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/texttospeech_v1/classes.rb,
lib/google/apis/texttospeech_v1/representations.rb,
lib/google/apis/texttospeech_v1/representations.rb

Overview

Used for advanced voice options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdvancedVoiceOptions

Returns a new instance of AdvancedVoiceOptions.



44
45
46
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 44

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#low_latency_journey_synthesisBoolean Also known as: low_latency_journey_synthesis?

Only for Journey voices. If false, the synthesis is context aware and has a higher latency. Corresponds to the JSON property lowLatencyJourneySynthesis

Returns:

  • (Boolean)


33
34
35
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 33

def low_latency_journey_synthesis
  @low_latency_journey_synthesis
end

#relax_safety_filtersBoolean Also known as: relax_safety_filters?

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. Corresponds to the JSON property relaxSafetyFilters

Returns:

  • (Boolean)


41
42
43
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 41

def relax_safety_filters
  @relax_safety_filters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 49

def update!(**args)
  @low_latency_journey_synthesis = args[:low_latency_journey_synthesis] if args.key?(:low_latency_journey_synthesis)
  @relax_safety_filters = args[:relax_safety_filters] if args.key?(:relax_safety_filters)
end