Reference documentation and code samples for the Cloud Text-to-Speech V1beta1 API class Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams.
Pronunciation customization for a phrase.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#phonetic_encoding
def phonetic_encoding() -> ::Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams::PhoneticEncoding
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams::PhoneticEncoding) — The phonetic encoding of the phrase.
#phonetic_encoding=
def phonetic_encoding=(value) -> ::Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams::PhoneticEncoding
Parameter
- value (::Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams::PhoneticEncoding) — The phonetic encoding of the phrase.
Returns
- (::Google::Cloud::TextToSpeech::V1beta1::CustomPronunciationParams::PhoneticEncoding) — The phonetic encoding of the phrase.
#phrase
def phrase() -> ::String
Returns
- (::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.
#phrase=
def phrase=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.
#pronunciation
def pronunciation() -> ::String
Returns
- (::String) — The pronunciation of the phrase. This must be in the phonetic encoding specified above.
#pronunciation=
def pronunciation=(value) -> ::String
Parameter
- value (::String) — The pronunciation of the phrase. This must be in the phonetic encoding specified above.
Returns
- (::String) — The pronunciation of the phrase. This must be in the phonetic encoding specified above.