Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/audiodata/duration/index.md
6552 views
---
title: AudioData.duration slug: Web/API/AudioData/duration page-type: web-api-instance-property status: - experimental browser-compat: api.AudioData.duration
---

{{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.

console.log(AudioData.duration);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}