Class: Google::Apis::TexttospeechV1::CustomPronunciations

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

A collection of pronunciation customizations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomPronunciations

Returns a new instance of CustomPronunciations.



173
174
175
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 173

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

Instance Attribute Details

#pronunciationsArray<Google::Apis::TexttospeechV1::CustomPronunciationParams>

The pronunciation customizations to be applied. Corresponds to the JSON property pronunciations



171
172
173
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 171

def pronunciations
  @pronunciations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 178

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