Reference documentation and code samples for the Cloud Speech-to-Text V1 API class Google::Cloud::Speech::V1::SpeechAdaptation.
Speech adaptation configuration.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#custom_classes
def custom_classes() -> ::Array<::Google::Cloud::Speech::V1::CustomClass>
Returns
-
(::Array<::Google::Cloud::Speech::V1::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 uniquecustom_class_id
. Refer to the inline defined class in phrase hints by itscustom_class_id
.
#custom_classes=
def custom_classes=(value) -> ::Array<::Google::Cloud::Speech::V1::CustomClass>
Parameter
-
value (::Array<::Google::Cloud::Speech::V1::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 uniquecustom_class_id
. Refer to the inline defined class in phrase hints by itscustom_class_id
.
Returns
-
(::Array<::Google::Cloud::Speech::V1::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 uniquecustom_class_id
. Refer to the inline defined class in phrase hints by itscustom_class_id
.
#phrase_set_references
def phrase_set_references() -> ::Array<::String>
Returns
- (::Array<::String>) — A collection of phrase set resource names to use.
#phrase_set_references=
def phrase_set_references=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — A collection of phrase set resource names to use.
Returns
- (::Array<::String>) — A collection of phrase set resource names to use.
#phrase_sets
def phrase_sets() -> ::Array<::Google::Cloud::Speech::V1::PhraseSet>
Returns
-
(::Array<::Google::Cloud::Speech::V1::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.
#phrase_sets=
def phrase_sets=(value) -> ::Array<::Google::Cloud::Speech::V1::PhraseSet>
Parameter
-
value (::Array<::Google::Cloud::Speech::V1::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.
Returns
-
(::Array<::Google::Cloud::Speech::V1::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.