Resource: 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.
JSON representation |
---|
{ "name": string, "uid": string, "phrases": [ { object ( |
Fields | |
---|---|
name |
Output only. Identifier. The resource name of the PhraseSet. Format: |
uid |
Output only. System-assigned unique identifier for the PhraseSet. |
phrases[] |
A list of word and phrases. |
boost |
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 |
displayName |
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. |
state |
Output only. The PhraseSet lifecycle state. |
createTime |
Output only. Creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The most recent time this resource was modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deleteTime |
Output only. The time at which this resource was requested for deletion. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expireTime |
Output only. The time at which this resource will be purged. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
annotations |
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. An object containing a list of |
etag |
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 |
Output only. Whether or not this PhraseSet is in the process of being updated. |
kmsKeyName |
Output only. The KMS key name with which the PhraseSet is encrypted. The expected format is |
kmsKeyVersionName |
Output only. The KMS key version name with which the PhraseSet is encrypted. The expected format is |
Phrase
A Phrase contains words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer.
List items can also include CustomClass references containing groups of words that represent common concepts that occur in natural language.
JSON representation |
---|
{ "value": string, "boost": number } |
Fields | |
---|---|
value |
The phrase itself. |
boost |
Hint Boost. Overrides the boost set at the phrase set level. 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 values will return an error. Boost values must be between 0 and 20. Any values outside that range will return an error. 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. |
State
Set of states that define the lifecycle of a PhraseSet.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unspecified state. This is only used/useful for distinguishing unset values. |
ACTIVE |
The normal and active state. |
DELETED |
This PhraseSet has been deleted. |
Methods |
|
---|---|
|
Creates a PhraseSet . |
|
Deletes the PhraseSet . |
|
Returns the requested PhraseSet . |
|
Lists PhraseSets. |
|
Updates the PhraseSet . |
|
Undeletes the PhraseSet . |