Send feedback
Class AudioEncoding (2.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.38.0 (latest)
2.37.0
2.36.1
2.35.0
2.34.0
2.33.0
2.32.0
2.31.0
2.30.0
2.29.0
2.28.1
2.27.0
2.26.1
2.25.1
2.24.1
2.23.0
2.22.0
2.21.1
2.20.1
2.19.0
2.18.0
2.17.3
2.16.2
2.15.1
2.14.1
2.13.1
2.12.0
2.11.1
2.10.0
2.9.3
2.8.0
2.7.0
2.6.0
2.5.1
2.4.1
2.3.0
2.2.1
2.1.0
2.0.1
1.3.4
1.2.0
1.1.0
Supported audio data encodings.
Enums
Name
Description
AUDIO_ENCODING_UNSPECIFIED
Default value. This value is unused.
LINEAR16
Headerless 16-bit signed little-endian PCM samples.
MULAW
Headerless 8-bit companded mulaw samples.
ALAW
Headerless 8-bit companded alaw samples.
AMR
AMR frames with an rfc4867.5 header.
AMR_WB
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.
Send feedback
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-03-31 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-31 UTC."],[],[]]