Path: blob/main/files/en-us/web/api/audiodata/duration/index.md
6552 views
------{{APIRef("WebCodecs API")}}{{SeeCompatTable}}
The duration read-only property of the {{domxref("AudioData")}} interface returns the duration in microseconds of this AudioData object.
Value
An integer.
Examples
The below example prints the value of duration to the console.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}