Class: Google::Apis::TexttospeechV1beta1::CustomPronunciations
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1beta1::CustomPronunciations
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/texttospeech_v1beta1/classes.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb,
lib/google/apis/texttospeech_v1beta1/representations.rb
Overview
A collection of pronunciation customizations.
Instance Attribute Summary collapse
-
#pronunciations ⇒ Array<Google::Apis::TexttospeechV1beta1::CustomPronunciationParams>
The pronunciation customizations to be applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomPronunciations
constructor
A new instance of CustomPronunciations.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomPronunciations
Returns a new instance of CustomPronunciations.
160 161 162 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pronunciations ⇒ Array<Google::Apis::TexttospeechV1beta1::CustomPronunciationParams>
The pronunciation customizations to be applied.
Corresponds to the JSON property pronunciations
158 159 160 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 158 def pronunciations @pronunciations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
165 166 167 |
# File 'lib/google/apis/texttospeech_v1beta1/classes.rb', line 165 def update!(**args) @pronunciations = args[:pronunciations] if args.key?(:pronunciations) end |