public sealed class OutputFormatConfig : IMessage<OutputFormatConfig>, IEquatable<OutputFormatConfig>, IDeepCloneable<OutputFormatConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class OutputFormatConfig.
Configuration for the format of the results stored to output.
public NativeOutputFileFormatConfig Native { get; set; }
Configuration for the native output format. If this field is set or if no
other output format field is set, then transcripts will be written to the
sink in the native format.
[[["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\u003eOutputFormatConfig\u003c/code\u003e class in the Google Cloud Speech-to-Text v2 API controls the formatting of results stored to an output, with the latest version being 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt offers constructors for creating new instances and duplicating existing ones with \u003ccode\u003eOutputFormatConfig()\u003c/code\u003e and \u003ccode\u003eOutputFormatConfig(OutputFormatConfig other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOutputFormatConfig\u003c/code\u003e supports three output formats, selectable via properties, including Native, SRT, and VTT, each corresponding to a different configuration class for the format of the transcript written to the sink.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation covers versions from 1.0.0 to 1.4.0 and the methods of \u003ccode\u003eOutputFormatConfig\u003c/code\u003e can allow you to set how results are formatted to the output.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class OutputFormatConfig (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.OutputFormatConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.OutputFormatConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.OutputFormatConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.OutputFormatConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.OutputFormatConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.OutputFormatConfig) \n\n public sealed class OutputFormatConfig : IMessage\u003cOutputFormatConfig\u003e, IEquatable\u003cOutputFormatConfig\u003e, IDeepCloneable\u003cOutputFormatConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class OutputFormatConfig.\n\nConfiguration for the format of the results stored to `output`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OutputFormatConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OutputFormatConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.OutputFormatConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OutputFormatConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.OutputFormatConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OutputFormatConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.OutputFormatConfig), [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### OutputFormatConfig()\n\n public OutputFormatConfig()\n\n### OutputFormatConfig(OutputFormatConfig)\n\n public OutputFormatConfig(OutputFormatConfig other)\n\nProperties\n----------\n\n### Native\n\n public NativeOutputFileFormatConfig Native { get; set; }\n\nConfiguration for the native output format. If this field is set or if no\nother output format field is set, then transcripts will be written to the\nsink in the native format.\n\n### Srt\n\n public SrtOutputFileFormatConfig Srt { get; set; }\n\nConfiguration for the SRT output format. If this field is set, then\ntranscripts will be written to the sink in the SRT format.\n\n### Vtt\n\n public VttOutputFileFormatConfig Vtt { get; set; }\n\nConfiguration for the VTT output format. If this field is set, then\ntranscripts will be written to the sink in the VTT format."]]