Recognizer(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A Recognizer message. Stores recognition configuration and metadata.
Attributes
Name | Description |
name |
str
Output only. The resource name of the Recognizer. Format: projects/{project}/locations/{location}/recognizers/{recognizer} .
|
uid |
str
Output only. System-assigned unique identifier for the Recognizer. |
display_name |
str
User-settable, human-readable name for the Recognizer. Must be 63 characters or less. |
model |
str
Required. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Supported models: - latest_long
Best for long form content like media or conversation.
- latest_short
Best for short form content like commands or single shot
directed speech. When using this model, the service will
stop transcribing audio after the first utterance is
detected and completed.
When using this model,
SEPARATE_RECOGNITION_PER_CHANNEL
is not supported; multi-channel audio is accepted, but only
the first channel will be processed and transcribed.
|
language_codes |
MutableSequence[str]
Required. The language of the supplied audio as a BCP-47 __
language tag.
Supported languages:
- en-US
- en-GB
- fr-FR
If additional languages are provided, recognition result
will contain recognition in the most likely language
detected. The recognition result will include the language
tag of the language detected in the audio. When you create
or update a Recognizer, these values are stored in
normalized BCP-47 form. For example, "en-us" is stored as
"en-US".
|
default_recognition_config |
google.cloud.speech_v2.types.RecognitionConfig
Default configuration to use for requests with this Recognizer. This can be overwritten by inline configuration in the RecognizeRequest.config field. |
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. |
state |
google.cloud.speech_v2.types.Recognizer.State
Output only. The Recognizer 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 Recognizer was modified. |
delete_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this Recognizer was requested for deletion. |
expire_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which this Recognizer will be purged. |
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 Recognizer 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 |
State
State(value)
Set of states that define the lifecycle of a Recognizer.
Values: STATE_UNSPECIFIED (0): The default value. This value is used if the state is omitted. ACTIVE (2): The Recognizer is active and ready for use. DELETED (4): This Recognizer has been deleted.