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. Phrase sets can be specified as an inline resource, or a reference to an existing phrase set 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 custom classes. Existing custom class resources can be referenced directly in a phrase set.

Returns:



533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 533

class SpeechAdaptation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A biasing phrase set, which can be either a string referencing the name of
  # an existing phrase set resource, or an inline definition of a phrase set.
  # @!attribute [rw] phrase_set
  #   @return [::String]
  #     The name of an existing phrase set 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 phrase set.
  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 phrase sets.

Returns:



533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'proto_docs/google/cloud/speech/v2/cloud_speech.rb', line 533

class SpeechAdaptation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A biasing phrase set, which can be either a string referencing the name of
  # an existing phrase set resource, or an inline definition of a phrase set.
  # @!attribute [rw] phrase_set
  #   @return [::String]
  #     The name of an existing phrase set 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 phrase set.
  class AdaptationPhraseSet
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end