Class: Google::Apis::SpeechV1::SpeechAdaptation
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1::SpeechAdaptation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1/classes.rb,
lib/google/apis/speech_v1/representations.rb,
lib/google/apis/speech_v1/representations.rb
Overview
Speech adaptation configuration.
Instance Attribute Summary collapse
-
#custom_classes ⇒ Array<Google::Apis::SpeechV1::CustomClass>
A collection of custom classes.
-
#phrase_set_references ⇒ Array<String>
A collection of phrase set resource names to use.
-
#phrase_sets ⇒ Array<Google::Apis::SpeechV1::PhraseSet>
A collection of phrase sets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpeechAdaptation
constructor
A new instance of SpeechAdaptation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpeechAdaptation
Returns a new instance of SpeechAdaptation.
943 944 945 |
# File 'lib/google/apis/speech_v1/classes.rb', line 943 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_classes ⇒ Array<Google::Apis::SpeechV1::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
929 930 931 |
# File 'lib/google/apis/speech_v1/classes.rb', line 929 def custom_classes @custom_classes end |
#phrase_set_references ⇒ Array<String>
A collection of phrase set resource names to use.
Corresponds to the JSON property phraseSetReferences
934 935 936 |
# File 'lib/google/apis/speech_v1/classes.rb', line 934 def phrase_set_references @phrase_set_references end |
#phrase_sets ⇒ Array<Google::Apis::SpeechV1::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
941 942 943 |
# File 'lib/google/apis/speech_v1/classes.rb', line 941 def phrase_sets @phrase_sets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
948 949 950 951 952 |
# File 'lib/google/apis/speech_v1/classes.rb', line 948 def update!(**args) @custom_classes = args[:custom_classes] if args.key?(:custom_classes) @phrase_set_references = args[:phrase_set_references] if args.key?(:phrase_set_references) @phrase_sets = args[:phrase_sets] if args.key?(:phrase_sets) end |