Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::SpeechAdaptation (v0.15.3)

Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::SpeechAdaptation.

Speech adaptation configuration.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#abnf_grammar

def abnf_grammar() -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar
Returns

#abnf_grammar=

def abnf_grammar=(value) -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar
Parameter
Returns

#custom_classes

def custom_classes() -> ::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>) — A collection of custom classes. To specify the classes inline, leave the class' name blank and fill in the rest of its fields, giving it a unique custom_class_id. Refer to the inline defined class in phrase hints by its custom_class_id.

#custom_classes=

def custom_classes=(value) -> ::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>
Parameter
  • value (::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>) — A collection of custom classes. To specify the classes inline, leave the class' name blank and fill in the rest of its fields, giving it a unique custom_class_id. Refer to the inline defined class in phrase hints by its custom_class_id.
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>) — A collection of custom classes. To specify the classes inline, leave the class' name blank and fill in the rest of its fields, giving it a unique custom_class_id. Refer to the inline defined class in phrase hints by its custom_class_id.

#phrase_set_references

def phrase_set_references() -> ::Array<::String>
Returns
  • (::Array<::String>) — A collection of phrase set resource names to use.

#phrase_set_references=

def phrase_set_references=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A collection of phrase set resource names to use.
Returns
  • (::Array<::String>) — A collection of phrase set resource names to use.

#phrase_sets

def phrase_sets() -> ::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>) — A collection of phrase sets. To specify the hints inline, leave the phrase set's name blank and fill in the rest of its fields. Any phrase set can use any custom class.

#phrase_sets=

def phrase_sets=(value) -> ::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>
Parameter
  • value (::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>) — A collection of phrase sets. To specify the hints inline, leave the phrase set's name blank and fill in the rest of its fields. Any phrase set can use any custom class.
Returns
  • (::Array<::Google::Cloud::Speech::V1p1beta1::PhraseSet>) — A collection of phrase sets. To specify the hints inline, leave the phrase set's name blank and fill in the rest of its fields. Any phrase set can use any custom class.