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. PhraseSets can be specified as an inline resource, or a reference to an existing PhraseSet 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 CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
#custom_classes=
def custom_classes=(value) -> ::Array<::Google::Cloud::Speech::V2::CustomClass>
Parameter
- value (::Array<::Google::Cloud::Speech::V2::CustomClass>) — A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
Returns
- (::Array<::Google::Cloud::Speech::V2::CustomClass>) — A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
#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 PhraseSets.
#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 PhraseSets.
Returns
- (::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>) — A list of inline or referenced PhraseSets.