PhraseSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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.
Attributes
Name | Description |
name |
str
Output only. The resource name of the PhraseSet. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} .
|
uid |
str
Output only. System-assigned unique identifier for the PhraseSet. |
phrases |
MutableSequence[google.cloud.speech_v2.types.PhraseSet.Phrase]
A list of word and 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.
|
display_name |
str
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. |
state |
google.cloud.speech_v2.types.PhraseSet.State
Output only. The PhraseSet lifecycle state. |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. Creation time. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The most recent time this resource was modified. |
delete_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this resource was requested for deletion. |
expire_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this resource will be purged. |
annotations |
MutableMapping[str, str]
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 |
str
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 |
str
Output only. The `KMS key name |
kms_key_version_name |
str
Output only. The `KMS key version name |
Classes
AnnotationsEntry
AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |
Phrase
Phrase(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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.
State
State(value)
Set of states that define the lifecycle of a PhraseSet.