public RecognitionConfig DefaultRecognitionConfig { get; set; }
Default configuration to use for requests with this Recognizer.
This can be overwritten by inline configuration in the
[RecognizeRequest.config][google.cloud.speech.v2.RecognizeRequest.config]
field.
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.
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}.
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}.
Optional. This field is now deprecated. Prefer the
[language_codes][google.cloud.speech.v2.RecognitionConfig.language_codes]
field in the
[RecognitionConfig][google.cloud.speech.v2.RecognitionConfig] message.
The language of the supplied audio as a
BCP-47 language tag.
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".
Optional. This field is now deprecated. Prefer the
[model][google.cloud.speech.v2.RecognitionConfig.model] field in the
[RecognitionConfig][google.cloud.speech.v2.RecognitionConfig] message.
Which model to use for recognition requests. Select the model best suited
to your domain to get best results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation provides reference information for the \u003ccode\u003eRecognizer\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, outlining its properties and constructors.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecognizer\u003c/code\u003e class is a message type that manages configuration and metadata for speech recognition, and it implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eRecognizer\u003c/code\u003e class include \u003ccode\u003eAnnotations\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDefaultRecognitionConfig\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e, among others, providing details about the recognizer's configuration, lifecycle, and metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecognizer\u003c/code\u003e class supports two constructors, a default one and another that copies the properties from another \u003ccode\u003eRecognizer\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also includes versioning information, with version 1.4.0 being the latest version.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class Recognizer (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.Recognizer)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.Recognizer)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.Recognizer)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.Recognizer)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.Recognizer) \n\n public sealed class Recognizer : IMessage\u003cRecognizer\u003e, IEquatable\u003cRecognizer\u003e, IDeepCloneable\u003cRecognizer\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class Recognizer.\n\nA Recognizer message. Stores recognition configuration and metadata. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Recognizer \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Recognizer](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Recognizer](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Recognizer](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Speech.V2](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V2.dll\n\nConstructors\n------------\n\n### Recognizer()\n\n public Recognizer()\n\n### Recognizer(Recognizer)\n\n public Recognizer(Recognizer other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nAllows users to store small amounts of arbitrary data.\nBoth the key and the value must be 63 characters or less each.\nAt most 100 annotations.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Creation time.\n\n### DefaultRecognitionConfig\n\n public RecognitionConfig DefaultRecognitionConfig { get; set; }\n\nDefault configuration to use for requests with this Recognizer.\nThis can be overwritten by inline configuration in the\n\\[RecognizeRequest.config\\]\\[google.cloud.speech.v2.RecognizeRequest.config\\]\nfield.\n\n### DeleteTime\n\n public Timestamp DeleteTime { get; set; }\n\nOutput only. The time at which this Recognizer was requested for deletion.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nUser-settable, human-readable name for the Recognizer. Must be 63\ncharacters or less.\n\n### Etag\n\n public string Etag { get; set; }\n\nOutput only. This checksum is computed by the server based on the value of\nother fields. This may be sent on update, undelete, and delete requests to\nensure the client has an up-to-date value before proceeding.\n\n### ExpireTime\n\n public Timestamp ExpireTime { get; set; }\n\nOutput only. The time at which this Recognizer will be purged.\n\n### KmsKeyName\n\n public string KmsKeyName { get; set; }\n\nOutput only. The [KMS key\nname](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which\nthe Recognizer is encrypted. The expected format is\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.\n\n### KmsKeyNameAsCryptoKeyName\n\n public CryptoKeyName KmsKeyNameAsCryptoKeyName { get; set; }\n\n[CryptoKeyName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CryptoKeyName)-typed view over the [KmsKeyName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer#Google_Cloud_Speech_V2_Recognizer_KmsKeyName) resource name property.\n\n### KmsKeyVersionName\n\n public string KmsKeyVersionName { get; set; }\n\nOutput only. The [KMS key version\nname](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)\nwith which the Recognizer is encrypted. The expected format is\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.\n\n### KmsKeyVersionNameAsCryptoKeyVersionName\n\n public CryptoKeyVersionName KmsKeyVersionNameAsCryptoKeyVersionName { get; set; }\n\n[CryptoKeyVersionName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CryptoKeyVersionName)-typed view over the [KmsKeyVersionName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer#Google_Cloud_Speech_V2_Recognizer_KmsKeyVersionName) resource name\nproperty.\n\n### LanguageCodes\n\n [Obsolete]\n public RepeatedField\u003cstring\u003e LanguageCodes { get; }\n\nOptional. This field is now deprecated. Prefer the\n\\[`language_codes`\\]\\[google.cloud.speech.v2.RecognitionConfig.language_codes\\]\nfield in the\n\\[`RecognitionConfig`\\]\\[google.cloud.speech.v2.RecognitionConfig\\] message.\n\nThe language of the supplied audio as a\n[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.\n\nSupported languages for each model are listed in the [Table of Supported\nModels](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).\n\nIf additional languages are provided, recognition result will contain\nrecognition in the most likely language detected. The recognition result\nwill include the language tag of the language detected in the audio.\nWhen you create or update a Recognizer, these values are\nstored in normalized BCP-47 form. For example, \"en-us\" is stored as\n\"en-US\".\n\n### Model\n\n [Obsolete]\n public string Model { get; set; }\n\nOptional. This field is now deprecated. Prefer the\n\\[`model`\\]\\[google.cloud.speech.v2.RecognitionConfig.model\\] field in the\n\\[`RecognitionConfig`\\]\\[google.cloud.speech.v2.RecognitionConfig\\] message.\n\nWhich model to use for recognition requests. Select the model best suited\nto your domain to get best results.\n\nGuidance for choosing which model to use can be found in the [Transcription\nModels\nDocumentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model)\nand the models supported in each region can be found in the [Table Of\nSupported\nModels](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Identifier. The resource name of the Recognizer.\nFormat: `projects/{project}/locations/{location}/recognizers/{recognizer}`.\n\n### RecognizerName\n\n public RecognizerName RecognizerName { get; set; }\n\n[RecognizerName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.RecognizerName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Recognizer#Google_Cloud_Speech_V2_Recognizer_Name) resource name property.\n\n### Reconciling\n\n public bool Reconciling { get; set; }\n\nOutput only. Whether or not this Recognizer is in the process of being\nupdated.\n\n### State\n\n public Recognizer.Types.State State { get; set; }\n\nOutput only. The Recognizer lifecycle state.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. System-assigned unique identifier for the Recognizer.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The most recent time this Recognizer was modified."]]