Class: Google::Apis::SpeechV1p1beta1::SpeechAdaptation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/speech_v1p1beta1/classes.rb,
generated/google/apis/speech_v1p1beta1/representations.rb,
generated/google/apis/speech_v1p1beta1/representations.rb

Overview

Speech adaptation configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpeechAdaptation

Returns a new instance of SpeechAdaptation.



771
772
773
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 771

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_classesArray<Google::Apis::SpeechV1p1beta1::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. Corresponds to the JSON property customClasses



762
763
764
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 762

def custom_classes
  @custom_classes
end

#phrase_setsArray<Google::Apis::SpeechV1p1beta1::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. Corresponds to the JSON property phraseSets



769
770
771
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 769

def phrase_sets
  @phrase_sets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



776
777
778
779
# File 'generated/google/apis/speech_v1p1beta1/classes.rb', line 776

def update!(**args)
  @custom_classes = args[:custom_classes] if args.key?(:custom_classes)
  @phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets)
end