# Cloud Speech V2 Client - Class AudioEncoding (2.5.1)

2.5.1 (latest) 2.5.0 2.4.0 2.3.0 2.2.1 2.1.1 2.0.1 1.20.1 1.19.2 1.18.3 1.16.0 1.15.0 1.14.3 1.13.1 1.12.0 1.11.2 1.10.0 1.9.1 1.8.0 1.7.0 Reference documentation and code samples for the Cloud Speech V2 Client class AudioEncoding.

Supported audio data encodings.

Protobuf type `google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding`

## Namespace

Google \\ Cloud \\ Speech \\ V2 \\ ExplicitDecodingConfig

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### AUDIO_ENCODING_UNSPECIFIED

    Value: 0

Default value. This value is unused.

Generated from protobuf enum `AUDIO_ENCODING_UNSPECIFIED = 0;`

### LINEAR16

    Value: 1

Headerless 16-bit signed little-endian PCM samples.

Generated from protobuf enum `LINEAR16 = 1;`

### MULAW

    Value: 2

Headerless 8-bit companded mulaw samples.

Generated from protobuf enum `MULAW = 2;`

### ALAW

    Value: 3

Headerless 8-bit companded alaw samples.

Generated from protobuf enum `ALAW = 3;`

### AMR

    Value: 4

AMR frames with an rfc4867.5 header.

Generated from protobuf enum `AMR = 4;`

### AMR_WB

    Value: 5

AMR-WB frames with an rfc4867.5 header.

Generated from protobuf enum `AMR_WB = 5;`

### FLAC

    Value: 6

FLAC frames in the "native FLAC" container format.

Generated from protobuf enum `FLAC = 6;`

### MP3

    Value: 7

MPEG audio frames with optional (ignored) ID3 metadata.

Generated from protobuf enum `MP3 = 7;`

### OGG_OPUS

    Value: 8

Opus audio frames in an Ogg container.

Generated from protobuf enum `OGG_OPUS = 8;`

### WEBM_OPUS

    Value: 9

Opus audio frames in a WebM container.

Generated from protobuf enum `WEBM_OPUS = 9;`

### MP4_AAC

    Value: 10

AAC audio frames in an MP4 container.

Generated from protobuf enum `MP4_AAC = 10;`

### M4A_AAC

    Value: 11

AAC audio frames in an M4A container.

Generated from protobuf enum `M4A_AAC = 11;`

### MOV_AAC

    Value: 12

AAC audio frames in an MOV container.

Generated from protobuf enum `MOV_AAC = 12;`