public sealed class AutoDetectDecodingConfig : IMessage<AutoDetectDecodingConfig>, IEquatable<AutoDetectDecodingConfig>, IDeepCloneable<AutoDetectDecodingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class AutoDetectDecodingConfig.
Automatically detected decoding parameters.
Supported for the following encodings:
WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV container.
WAV_MULAW: 8-bit companded mulaw samples in a WAV container.
WAV_ALAW: 8-bit companded alaw samples in a WAV container.
RFC4867_5_AMR: AMR frames with an rfc4867.5 header.
RFC4867_5_AMRWB: AMR-WB frames with an rfc4867.5 header.
FLAC: FLAC frames in the "native FLAC" container format.
MP3: MPEG audio frames with optional (ignored) ID3 metadata.
[[["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 latest version of the \u003ccode\u003eAutoDetectDecodingConfig\u003c/code\u003e class is 1.4.0, part of the Google Cloud Speech-to-Text v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class automatically detects decoding parameters for various audio encodings used in speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eSupported audio encodings include WAV_LINEAR16, WAV_MULAW, WAV_ALAW, RFC4867_5_AMR, RFC4867_5_AMRWB, FLAC, MP3, OGG_OPUS, WEBM_OPUS, MP4_AAC, M4A_AAC, and MOV_AAC.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAutoDetectDecodingConfig\u003c/code\u003e implements interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage, allowing for deep cloning and equality comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor and a copy constructor that takes another \u003ccode\u003eAutoDetectDecodingConfig\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class AutoDetectDecodingConfig (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.AutoDetectDecodingConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig) \n\n public sealed class AutoDetectDecodingConfig : IMessage\u003cAutoDetectDecodingConfig\u003e, IEquatable\u003cAutoDetectDecodingConfig\u003e, IDeepCloneable\u003cAutoDetectDecodingConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class AutoDetectDecodingConfig.\n\nAutomatically detected decoding parameters.\nSupported for the following encodings:\n\n- WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV container.\n\n- WAV_MULAW: 8-bit companded mulaw samples in a WAV container.\n\n- WAV_ALAW: 8-bit companded alaw samples in a WAV container.\n\n- RFC4867_5_AMR: AMR frames with an rfc4867.5 header.\n\n- RFC4867_5_AMRWB: AMR-WB frames with an rfc4867.5 header.\n\n- FLAC: FLAC frames in the \"native FLAC\" container format.\n\n- MP3: MPEG audio frames with optional (ignored) ID3 metadata.\n\n- OGG_OPUS: Opus audio frames in an Ogg container.\n\n- WEBM_OPUS: Opus audio frames in a WebM container.\n\n- MP4_AAC: AAC audio frames in an MP4 container.\n\n- M4A_AAC: AAC audio frames in an M4A container.\n\n- MOV_AAC: AAC audio frames in an MOV container.\n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutoDetectDecodingConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoDetectDecodingConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoDetectDecodingConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutoDetectDecodingConfig](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig), [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### AutoDetectDecodingConfig()\n\n public AutoDetectDecodingConfig()\n\n### AutoDetectDecodingConfig(AutoDetectDecodingConfig)\n\n public AutoDetectDecodingConfig(AutoDetectDecodingConfig other)"]]