# Cloud Speech-to-Text V1 API - Class Google::Cloud::Speech::V1::PhraseSet (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.17.0 0.16.2 0.15.0 0.14.0 0.13.1 0.12.1 0.11.0 0.10.2 0.9.0 0.8.0 0.7.3 Reference documentation and code samples for the Cloud Speech-to-Text V1 API class Google::Cloud::Speech::V1::PhraseSet.

Provides "hints" to the speech recognizer to favor specific words and phrases
in the results.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #boost

    def boost() -> ::Float

**Returns**

- (::Float) --- Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.

### #boost=

    def boost=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
**Returns**

- (::Float) --- Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the phrase set.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the phrase set.
**Returns**

- (::String) --- The resource name of the phrase set.

### #phrases

    def phrases() -> ::Array<::Google::Cloud::Speech::V1::PhraseSet::Phrase>

**Returns**

- (::Array\<[::Google::Cloud::Speech::V1::PhraseSet::Phrase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-PhraseSet-Phrase)\>) --- A list of word and phrases.

### #phrases=

    def phrases=(value) -> ::Array<::Google::Cloud::Speech::V1::PhraseSet::Phrase>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Speech::V1::PhraseSet::Phrase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-PhraseSet-Phrase)\>) --- A list of word and phrases.
**Returns**

- (::Array\<[::Google::Cloud::Speech::V1::PhraseSet::Phrase](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-PhraseSet-Phrase)\>) --- A list of word and phrases.