Class: Google::Cloud::Speech::V2::SpeechAdaptation
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::V2::SpeechAdaptation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/speech/v2/cloud_speech.rb
Overview
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.
Defined Under Namespace
Classes: AdaptationPhraseSet
Instance Attribute Summary collapse
-
#custom_classes ⇒ ::Array<::Google::Cloud::Speech::V2::CustomClass>
A list of inline CustomClasses.
-
#phrase_sets ⇒ ::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>
A list of inline or referenced PhraseSets.
Instance Attribute Details
#custom_classes ⇒ ::Array<::Google::Cloud::Speech::V2::CustomClass>
Returns A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 593 class SpeechAdaptation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A biasing PhraseSet, which can be either a string referencing the name of # an existing PhraseSets resource, or an inline definition of a PhraseSet. # @!attribute [rw] phrase_set # @return [::String] # The name of an existing PhraseSet resource. The user must have read # access to the resource and it must not be deleted. # @!attribute [rw] inline_phrase_set # @return [::Google::Cloud::Speech::V2::PhraseSet] # An inline defined PhraseSet. class AdaptationPhraseSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#phrase_sets ⇒ ::Array<::Google::Cloud::Speech::V2::SpeechAdaptation::AdaptationPhraseSet>
Returns A list of inline or referenced PhraseSets.
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 |
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 593 class SpeechAdaptation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # A biasing PhraseSet, which can be either a string referencing the name of # an existing PhraseSets resource, or an inline definition of a PhraseSet. # @!attribute [rw] phrase_set # @return [::String] # The name of an existing PhraseSet resource. The user must have read # access to the resource and it must not be deleted. # @!attribute [rw] inline_phrase_set # @return [::Google::Cloud::Speech::V2::PhraseSet] # An inline defined PhraseSet. class AdaptationPhraseSet include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |