public sealed class StreamingRecognitionConfig : IMessage<StreamingRecognitionConfig>, IEquatable<StreamingRecognitionConfig>, IDeepCloneable<StreamingRecognitionConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionConfig.
Provides configuration information for the StreamingRecognize request.
Required. Features and audio metadata to use for the Automatic Speech
Recognition. This field in combination with the
[config_mask][google.cloud.speech.v2.StreamingRecognitionConfig.config_mask]
field can be used to override parts of the
[default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config]
of the Recognizer resource.
The list of fields in
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
override the values in the
[default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config]
of the recognizer during this recognition request. If no mask is provided,
all non-default valued fields in
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config] override
the values in the Recognizer for this recognition request. If a mask is
provided, only the fields listed in the mask override the config in the
Recognizer for this recognition request. If a wildcard (*) is provided,
[config][google.cloud.speech.v2.StreamingRecognitionConfig.config]
completely overrides and replaces the config in the recognizer for this
recognition request.
[[["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 document provides reference information for the \u003ccode\u003eStreamingRecognitionConfig\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, used to configure streaming recognition requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStreamingRecognitionConfig\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be used for message handling, equality comparison, deep cloning, and buffer message operations.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties for \u003ccode\u003eConfig\u003c/code\u003e which defines the audio and features used for recognition, \u003ccode\u003eConfigMask\u003c/code\u003e to specify which configuration fields should override the recognizer's default settings, and \u003ccode\u003eStreamingFeatures\u003c/code\u003e for specific streaming-related features.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions of the API are provided with version 1.4.0 being the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStreamingRecognitionConfig\u003c/code\u003e class offers two constructors: a default constructor and one that takes another \u003ccode\u003eStreamingRecognitionConfig\u003c/code\u003e object for creating a new instance based on an existing one.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class StreamingRecognitionConfig (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.StreamingRecognitionConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.StreamingRecognitionConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.StreamingRecognitionConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.StreamingRecognitionConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.StreamingRecognitionConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.StreamingRecognitionConfig) \n\n public sealed class StreamingRecognitionConfig : IMessage\u003cStreamingRecognitionConfig\u003e, IEquatable\u003cStreamingRecognitionConfig\u003e, IDeepCloneable\u003cStreamingRecognitionConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionConfig.\n\nProvides configuration information for the StreamingRecognize request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StreamingRecognitionConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingRecognitionConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingRecognitionConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingRecognitionConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionConfig), [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### StreamingRecognitionConfig()\n\n public StreamingRecognitionConfig()\n\n### StreamingRecognitionConfig(StreamingRecognitionConfig)\n\n public StreamingRecognitionConfig(StreamingRecognitionConfig other)\n\nProperties\n----------\n\n### Config\n\n public RecognitionConfig Config { get; set; }\n\nRequired. Features and audio metadata to use for the Automatic Speech\nRecognition. This field in combination with the\n\\[config_mask\\]\\[google.cloud.speech.v2.StreamingRecognitionConfig.config_mask\\]\nfield can be used to override parts of the\n\\[default_recognition_config\\]\\[google.cloud.speech.v2.Recognizer.default_recognition_config\\]\nof the Recognizer resource.\n\n### ConfigMask\n\n public FieldMask ConfigMask { get; set; }\n\nThe list of fields in\n\\[config\\]\\[google.cloud.speech.v2.StreamingRecognitionConfig.config\\] that\noverride the values in the\n\\[default_recognition_config\\]\\[google.cloud.speech.v2.Recognizer.default_recognition_config\\]\nof the recognizer during this recognition request. If no mask is provided,\nall non-default valued fields in\n\\[config\\]\\[google.cloud.speech.v2.StreamingRecognitionConfig.config\\] override\nthe values in the Recognizer for this recognition request. If a mask is\nprovided, only the fields listed in the mask override the config in the\nRecognizer for this recognition request. If a wildcard (`*`) is provided,\n\\[config\\]\\[google.cloud.speech.v2.StreamingRecognitionConfig.config\\]\ncompletely overrides and replaces the config in the recognizer for this\nrecognition request.\n\n### StreamingFeatures\n\n public StreamingRecognitionFeatures StreamingFeatures { get; set; }\n\nSpeech recognition features to enable specific to streaming audio\nrecognition requests."]]