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

{{APIRef("WebCodecs API")}}{{SeeCompatTable}}

The numberOfChannels read-only property of the {{domxref("AudioData")}} interface returns the number of channels in the AudioData object.

Value

An integer.

Examples

The below example prints the value of numberOfChannels to the console.

console.log(AudioData.numberOfChannels);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}