Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::SpeechAdaptation.
Provides "hints" to the speech recognizer to favor specific words and phrases in the results. Phrase sets can be specified as an inline resource, or a reference to an existing phrase set resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#custom_classes
def custom_classes() -> ::Array<::Google::Cloud::Speech::V2::CustomClass>
Returns
- (::Array<::Google::Cloud::Speech::V2::CustomClass>) — A list of inline custom classes. Existing custom class resources can be referenced directly in a phrase set.
#custom_classes=
def custom_classes=(value) -> ::Array<::Google::Cloud::Speech::V2::CustomClass>
Parameter
- value (::Array<::Google::Cloud::Speech::V2::CustomClass>) — A list of inline custom classes. Existing custom class resources can be referenced directly in a phrase set.
Returns
- (::Array<::Google::Cloud::Speech::V2::CustomClass>) — A list of inline custom classes. Existing custom class resources can be referenced directly in a phrase set.
#phrase_sets
def phrase_sets() -> ::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>
Returns
- (::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>) — A list of inline or referenced phrase sets.
#phrase_sets=
def phrase_sets=(value) -> ::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>
Parameter
- value (::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>) — A list of inline or referenced phrase sets.
Returns
- (::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>) — A list of inline or referenced phrase sets.