# Cloud Speech-to-Text v2 API - Class AutoDetectDecodingConfig (1.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.8.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.7.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.6.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.5.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.AutoDetectDecodingConfig)

    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.

- OGG_OPUS: Opus audio frames in an Ogg container.

- WEBM_OPUS: Opus audio frames in a WebM container.

- MP4_AAC: AAC audio frames in an MP4 container.

- M4A_AAC: AAC audio frames in an M4A container.

- MOV_AAC: AAC audio frames in an MOV container.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AutoDetectDecodingConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoDetectDecodingConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoDetectDecodingConfig](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Speech.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)

## Assembly

Google.Cloud.Speech.V2.dll

## Constructors

### AutoDetectDecodingConfig()

    public AutoDetectDecodingConfig()

### AutoDetectDecodingConfig(AutoDetectDecodingConfig)

    public AutoDetectDecodingConfig(AutoDetectDecodingConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.AutoDetectDecodingConfig` |