Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::PhraseSet (v0.24.1)

Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::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

#annotations

def annotations() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.

#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.

#delete_time

def delete_time() -> ::Google::Protobuf::Timestamp
Returns

#display_name

def display_name() -> ::String
Returns
  • (::String) — Output only. User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. This field is not used.

#etag

def etag() -> ::String
Returns
  • (::String) — Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.

#expire_time

def expire_time() -> ::Google::Protobuf::Timestamp
Returns

#kms_key_name

def kms_key_name() -> ::String
Returns
  • (::String) — Output only. The KMS key name with which the content of the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

#kms_key_version_name

def kms_key_version_name() -> ::String
Returns
  • (::String) — Output only. The KMS key version name with which content of the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}.

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

#phrases=

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

#reconciling

def reconciling() -> ::Boolean
Returns
  • (::Boolean) — Output only. Whether or not this PhraseSet is in the process of being updated. This field is not used.

#state

def state() -> ::Google::Cloud::Speech::V1p1beta1::PhraseSet::State
Returns

#uid

def uid() -> ::String
Returns
  • (::String) — Output only. System-assigned unique identifier for the PhraseSet. This field is not used.