Class: Google::Cloud::Speech::V2::SpeechAdaptation

Inherits:
Object
  • Object
show all
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

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.

Returns:



579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 579

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.

Returns:



579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 579

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