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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/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.



1105
1106
1107
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1105

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

Instance Attribute Details

#abnf_grammarGoogle::Apis::SpeechV1p1beta1::AbnfGrammar

Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech- grammar Corresponds to the JSON property abnfGrammar



1083
1084
1085
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1083

def abnf_grammar
  @abnf_grammar
end

#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



1091
1092
1093
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1091

def custom_classes
  @custom_classes
end

#phrase_set_referencesArray<String>

A collection of phrase set resource names to use. Corresponds to the JSON property phraseSetReferences

Returns:

  • (Array<String>)


1096
1097
1098
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1096

def phrase_set_references
  @phrase_set_references
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



1103
1104
1105
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1103

def phrase_sets
  @phrase_sets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
1113
1114
1115
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1110

def update!(**args)
  @abnf_grammar = args[:abnf_grammar] if args.key?(:abnf_grammar)
  @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