public sealed class RecognitionOutputConfig : IMessage<RecognitionOutputConfig>, IEquatable<RecognitionOutputConfig>, IDeepCloneable<RecognitionOutputConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class RecognitionOutputConfig.
Configuration options for the output(s) of recognition.
public InlineOutputConfig InlineResponseConfig { get; set; }
If this message is populated, recognition results are provided in the
[BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
message of the Operation when completed. This is only supported when
calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
with just one audio file.
[[["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\u003eThe \u003ccode\u003eRecognitionOutputConfig\u003c/code\u003e class in the Cloud Speech-to-Text v2 API defines configuration options for the output of speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eIt supports writing recognition results to a Google Cloud Storage URI via the \u003ccode\u003eGcsOutputConfig\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe class can also provide recognition results directly within the \u003ccode\u003eBatchRecognizeResponse\u003c/code\u003e message using the \u003ccode\u003eInlineResponseConfig\u003c/code\u003e, when used with a single audio file.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOutputFormatConfig\u003c/code\u003e allows for specifying the format of the stored results, defaulting to \u003ccode\u003eNATIVE\u003c/code\u003e format if left unspecified.\u003c/p\u003e\n"],["\u003cp\u003eThis class has versioned documentation, with version 1.4.0 being the latest, and is part of the \u003ccode\u003eGoogle.Cloud.Speech.V2\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Speech.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class RecognitionOutputConfig (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.RecognitionOutputConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.RecognitionOutputConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.RecognitionOutputConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.RecognitionOutputConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.RecognitionOutputConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.RecognitionOutputConfig) \n\n public sealed class RecognitionOutputConfig : IMessage\u003cRecognitionOutputConfig\u003e, IEquatable\u003cRecognitionOutputConfig\u003e, IDeepCloneable\u003cRecognitionOutputConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class RecognitionOutputConfig.\n\nConfiguration options for the output(s) of recognition. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RecognitionOutputConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RecognitionOutputConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.RecognitionOutputConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RecognitionOutputConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.RecognitionOutputConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RecognitionOutputConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.RecognitionOutputConfig), [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### RecognitionOutputConfig()\n\n public RecognitionOutputConfig()\n\n### RecognitionOutputConfig(RecognitionOutputConfig)\n\n public RecognitionOutputConfig(RecognitionOutputConfig other)\n\nProperties\n----------\n\n### GcsOutputConfig\n\n public GcsOutputConfig GcsOutputConfig { get; set; }\n\nIf this message is populated, recognition results are written to the\nprovided Google Cloud Storage URI.\n\n### InlineResponseConfig\n\n public InlineOutputConfig InlineResponseConfig { get; set; }\n\nIf this message is populated, recognition results are provided in the\n\\[BatchRecognizeResponse\\]\\[google.cloud.speech.v2.BatchRecognizeResponse\\]\nmessage of the Operation when completed. This is only supported when\ncalling \\[BatchRecognize\\]\\[google.cloud.speech.v2.Speech.BatchRecognize\\]\nwith just one audio file.\n\n### OutputCase\n\n public RecognitionOutputConfig.OutputOneofCase OutputCase { get; }\n\n### OutputFormatConfig\n\n public OutputFormatConfig OutputFormatConfig { get; set; }\n\nOptional. Configuration for the format of the results stored to `output`.\nIf unspecified transcripts will be written in the `NATIVE` format only."]]