files/en-us/web/api/audiodata/format/index.md
{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The format read-only property of the {{domxref("AudioData")}} interface returns the sample format of the AudioData object.
A string. One of:
"u8"
"s16"
"s32"
"f32"
"u8-planar"
"s16-planar"
"s32-planar"
"f32-planar"
The below example prints the value of format to the console.
console.log(AudioData.format);
{{Specifications}}
{{Compat}}