---
title: AudioData.numberOfChannels
slug: Web/API/AudioData/numberOfChannels
tags:
  - API
  - Property
  - Reference
  - numberOfChannels
  - AudioData
browser-compat: api.AudioData.numberOfChannels
---
{{DefaultAPISidebar("WebCodecs API")}}

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.

```js
console.log(AudioData.numberOfChannels);
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
