Reference documentation and code samples for the Cloud Speech V2 Client class PhraseSet.
PhraseSet for biasing in speech recognition. A PhraseSet is used to provide "hints" to the speech recognizer to favor specific words and phrases in the results.
Generated from protobuf message google.cloud.speech.v2.PhraseSet
Namespace
Google \ Cloud \ Speech \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The resource name of the PhraseSet. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}
.
↳ uid
string
Output only. System-assigned unique identifier for the PhraseSet.
↳ phrases
↳ boost
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. Valid boost
values are 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.
↳ display_name
string
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less.
↳ state
int
Output only. The PhraseSet lifecycle state.
↳ create_time
↳ update_time
↳ delete_time
↳ expire_time
↳ annotations
array| Google\Protobuf\Internal\MapField
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.
↳ etag
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.
↳ reconciling
bool
Output only. Whether or not this PhraseSet is in the process of being updated.
↳ kms_key_name
string
Output only. The KMS key name
with which the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
↳ kms_key_version_name
string
Output only. The KMS key version name
with which the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
.
getName
Output only. Identifier. The resource name of the PhraseSet.
Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}
.
string
setName
Output only. Identifier. The resource name of the PhraseSet.
Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}
.
var
string
$this
getUid
Output only. System-assigned unique identifier for the PhraseSet.
string
setUid
Output only. System-assigned unique identifier for the PhraseSet.
var
string
$this
getPhrases
A list of word and phrases.
setPhrases
A list of word and phrases.
$this
getBoost
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.
Valid boost
values are 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.
float
setBoost
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.
Valid boost
values are 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.
var
float
$this
getDisplayName
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less.
string
setDisplayName
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less.
var
string
$this
getState
Output only. The PhraseSet lifecycle state.
int
setState
Output only. The PhraseSet lifecycle state.
var
int
$this
getCreateTime
Output only. Creation time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time.
$this
getUpdateTime
Output only. The most recent time this resource was modified.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The most recent time this resource was modified.
$this
getDeleteTime
Output only. The time at which this resource was requested for deletion.
hasDeleteTime
clearDeleteTime
setDeleteTime
Output only. The time at which this resource was requested for deletion.
$this
getExpireTime
Output only. The time at which this resource will be purged.
hasExpireTime
clearExpireTime
setExpireTime
Output only. The time at which this resource will be purged.
$this
getAnnotations
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.
setAnnotations
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
getEtag
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.
string
setEtag
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.
var
string
$this
getReconciling
Output only. Whether or not this PhraseSet is in the process of being updated.
bool
setReconciling
Output only. Whether or not this PhraseSet is in the process of being updated.
var
bool
$this
getKmsKeyName
Output only. The KMS key
name
with which
the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
string
setKmsKeyName
Output only. The KMS key
name
with which
the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
var
string
$this
getKmsKeyVersionName
Output only. The KMS key version
name
with which the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
.
string
setKmsKeyVersionName
Output only. The KMS key version
name
with which the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
.
var
string
$this