Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::Recognizer (v1.4.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::Recognizer.
A Recognizer message. Stores recognition configuration and metadata.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
defannotations()->::Google::Protobuf::Map{::String=>::String}- (::Google::Protobuf::Map{::String => ::String}) — 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.
#annotations=
defannotations=(value)->::Google::Protobuf::Map{::String=>::String}- value (::Google::Protobuf::Map{::String => ::String}) — 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.
- (::Google::Protobuf::Map{::String => ::String}) — 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.
#create_time
defcreate_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Creation time.
#default_recognition_config
defdefault_recognition_config()->::Google::Cloud::Speech::V2::RecognitionConfig- (::Google::Cloud::Speech::V2::RecognitionConfig) — Default configuration to use for requests with this Recognizer. This can be overwritten by inline configuration in the RecognizeRequest.config field.
#default_recognition_config=
defdefault_recognition_config=(value)->::Google::Cloud::Speech::V2::RecognitionConfig- value (::Google::Cloud::Speech::V2::RecognitionConfig) — Default configuration to use for requests with this Recognizer. This can be overwritten by inline configuration in the RecognizeRequest.config field.
- (::Google::Cloud::Speech::V2::RecognitionConfig) — Default configuration to use for requests with this Recognizer. This can be overwritten by inline configuration in the RecognizeRequest.config field.
#delete_time
defdelete_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The time at which this Recognizer was requested for deletion.
#display_name
defdisplay_name()->::String- (::String) — User-settable, human-readable name for the Recognizer. Must be 63 characters or less.
#display_name=
defdisplay_name=(value)->::String- value (::String) — User-settable, human-readable name for the Recognizer. Must be 63 characters or less.
- (::String) — User-settable, human-readable name for the Recognizer. Must be 63 characters or less.
#etag
defetag()->::String- (::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.
#expire_time
defexpire_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The time at which this Recognizer will be purged.
#kms_key_name
defkms_key_name()->::String-
(::String) — Output only. The KMS key
name with which
the Recognizer is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
#kms_key_version_name
defkms_key_version_name()->::String-
(::String) — Output only. The KMS key version
name
with which the Recognizer is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}.
#language_codes
deflanguage_codes()->::Array<::String>-
(::Array<::String>) — Optional. This field is now deprecated. Prefer the
language_codesfield in theRecognitionConfigmessage.The language of the supplied audio as a BCP-47 language tag.
Supported languages for each model are listed in the Table of Supported Models.
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".
#language_codes=
deflanguage_codes=(value)->::Array<::String>-
value (::Array<::String>) — Optional. This field is now deprecated. Prefer the
language_codesfield in theRecognitionConfigmessage.The language of the supplied audio as a BCP-47 language tag.
Supported languages for each model are listed in the Table of Supported Models.
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".
-
(::Array<::String>) — Optional. This field is now deprecated. Prefer the
language_codesfield in theRecognitionConfigmessage.The language of the supplied audio as a BCP-47 language tag.
Supported languages for each model are listed in the Table of Supported Models.
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".
#model
defmodel()->::String-
(::String) — Optional. This field is now deprecated. Prefer the
modelfield in theRecognitionConfigmessage.Which model to use for recognition requests. Select the model best suited to your domain to get best results.
Guidance for choosing which model to use can be found in the Transcription Models Documentation and the models supported in each region can be found in the Table Of Supported Models.
#model=
defmodel=(value)->::String-
value (::String) — Optional. This field is now deprecated. Prefer the
modelfield in theRecognitionConfigmessage.Which model to use for recognition requests. Select the model best suited to your domain to get best results.
Guidance for choosing which model to use can be found in the Transcription Models Documentation and the models supported in each region can be found in the Table Of Supported Models.
-
(::String) — Optional. This field is now deprecated. Prefer the
modelfield in theRecognitionConfigmessage.Which model to use for recognition requests. Select the model best suited to your domain to get best results.
Guidance for choosing which model to use can be found in the Transcription Models Documentation and the models supported in each region can be found in the Table Of Supported Models.
#name
defname()->::String-
(::String) — Output only. Identifier. The resource name of the Recognizer.
Format:
projects/{project}/locations/{location}/recognizers/{recognizer}.
#reconciling
defreconciling()->::Boolean- (::Boolean) — Output only. Whether or not this Recognizer is in the process of being updated.
#state
defstate()->::Google::Cloud::Speech::V2::Recognizer::State- (::Google::Cloud::Speech::V2::Recognizer::State) — Output only. The Recognizer lifecycle state.
#uid
defuid()->::String- (::String) — Output only. System-assigned unique identifier for the Recognizer.
#update_time
defupdate_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The most recent time this Recognizer was modified.