# Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::SpeechAdaptation (v0.30.0)

0.30.0 (latest) 0.29.1 0.28.0 0.27.1 0.26.0 0.25.0 0.24.1 0.23.0 0.22.0 0.21.1 0.20.2 0.19.0 0.18.1 0.17.1 0.16.0 0.15.3 0.14.0 0.13.0 0.12.4 Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::SpeechAdaptation.

Speech adaptation configuration.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #abnf_grammar

    def abnf_grammar() -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar

**Returns**

- ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptation-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

### #abnf_grammar=

    def abnf_grammar=(value) -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar

**Parameter**

- **value** ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptation-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
**Returns**

- ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptation::ABNFGrammar](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptation-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

### #custom_classes

    def custom_classes() -> ::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>

**Returns**

- (::Array\<[::Google::Cloud::Speech::V1p1beta1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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`.

### #custom_classes=

    def custom_classes=(value) -> ::Array<::Google::Cloud::Speech::V1p1beta1::CustomClass>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Speech::V1p1beta1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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`.
**Returns**

- (::Array\<[::Google::Cloud::Speech::V1p1beta1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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`.

### #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::V1p1beta1::PhraseSet>

**Returns**

- (::Array\<[::Google::Cloud::Speech::V1p1beta1::PhraseSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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::V1p1beta1::PhraseSet>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Speech::V1p1beta1::PhraseSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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::V1p1beta1::PhraseSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-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.