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 \ ExplicitDecodingConfigMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
AUDIO_ENCODING_UNSPECIFIED
Value: 0Default value. This value is unused.
Generated from protobuf enum AUDIO_ENCODING_UNSPECIFIED = 0;
LINEAR16
Value: 1Headerless 16-bit signed little-endian PCM samples.
Generated from protobuf enum LINEAR16 = 1;
MULAW
Value: 2Headerless 8-bit companded mulaw samples.
Generated from protobuf enum MULAW = 2;
ALAW
Value: 3Headerless 8-bit companded alaw samples.
Generated from protobuf enum ALAW = 3;
AMR
Value: 4AMR frames with an rfc4867.5 header.
Generated from protobuf enum AMR = 4;
AMR_WB
Value: 5AMR-WB frames with an rfc4867.5 header.
Generated from protobuf enum AMR_WB = 5;
FLAC
Value: 6FLAC frames in the "native FLAC" container format.
Generated from protobuf enum FLAC = 6;
MP3
Value: 7MPEG audio frames with optional (ignored) ID3 metadata.
Generated from protobuf enum MP3 = 7;
OGG_OPUS
Value: 8Opus audio frames in an Ogg container.
Generated from protobuf enum OGG_OPUS = 8;
WEBM_OPUS
Value: 9Opus audio frames in a WebM container.
Generated from protobuf enum WEBM_OPUS = 9;
MP4_AAC
Value: 10AAC audio frames in an MP4 container.
Generated from protobuf enum MP4_AAC = 10;
M4A_AAC
Value: 11AAC audio frames in an M4A container.
Generated from protobuf enum M4A_AAC = 11;
MOV_AAC
Value: 12AAC audio frames in an MOV container.
Generated from protobuf enum MOV_AAC = 12;