Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding (v0.15.0)
1.7.1 (latest)
1.7.0
1.6.0
1.5.0
1.4.1
1.3.0
1.2.1
1.1.0
1.0.1
0.16.0
0.15.0
0.14.0
0.13.1
0.12.0
0.11.0
0.10.0
0.9.2
0.8.0
0.7.0
0.6.0
0.5.1
0.4.0
0.3.0
0.2.0
0.1.0
Reference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding.
Supported audio data encodings.
Constants
AUDIO_ENCODING_UNSPECIFIED
value: 0 Default value. This value is unused.
LINEAR16
value: 1 Headerless 16-bit signed little-endian PCM samples.
MULAW
value: 2 Headerless 8-bit companded mulaw samples.
ALAW
value: 3 Headerless 8-bit companded alaw samples.
AMR
value: 4 AMR frames with an rfc4867.5 header.
AMR_WB
value: 5 AMR-WB frames with an rfc4867.5 header.
FLAC
value: 6 FLAC frames in the "native FLAC" container format.
MP3
value: 7 MPEG audio frames with optional (ignored) ID3 metadata.
OGG_OPUS
value: 8 Opus audio frames in an Ogg container.
WEBM_OPUS
value: 9 Opus audio frames in a WebM container.
MP4_AAC
value: 10 AAC audio frames in an MP4 container.
M4A_AAC
value: 11 AAC audio frames in an M4A container.
MOV_AAC
value: 12 AAC audio frames in an MOV container.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-03 UTC.
[[["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 2026-04-03 UTC."],[],[]]