Class: Google::Apis::TexttospeechV1::CustomPronunciationParams
- Inherits:
-
Object
- Object
- Google::Apis::TexttospeechV1::CustomPronunciationParams
- 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
Pronunciation customization for a phrase.
Instance Attribute Summary collapse
-
#phonetic_encoding ⇒ String
The phonetic encoding of the phrase.
-
#phrase ⇒ String
The phrase to which the customization will be applied.
-
#pronunciation ⇒ String
The pronunciation of the phrase.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomPronunciationParams
constructor
A new instance of CustomPronunciationParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomPronunciationParams
Returns a new instance of CustomPronunciationParams.
152 153 154 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#phonetic_encoding ⇒ String
The phonetic encoding of the phrase.
Corresponds to the JSON property phoneticEncoding
137 138 139 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 137 def phonetic_encoding @phonetic_encoding end |
#phrase ⇒ String
The phrase to which the customization will be applied. The phrase can be
multiple words (in the case of proper nouns etc), but should not span to a
whole sentence.
Corresponds to the JSON property phrase
144 145 146 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 144 def phrase @phrase end |
#pronunciation ⇒ String
The pronunciation of the phrase. This must be in the phonetic encoding
specified above.
Corresponds to the JSON property pronunciation
150 151 152 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 150 def pronunciation @pronunciation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
157 158 159 160 161 |
# File 'lib/google/apis/texttospeech_v1/classes.rb', line 157 def update!(**args) @phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding) @phrase = args[:phrase] if args.key?(:phrase) @pronunciation = args[:pronunciation] if args.key?(:pronunciation) end |