[ type ] AudioFormat

Description:

Represents an audio format for an audio device.

Type: Object

Properties:

Name Type Description

channels

number

Number of audio channels. (1-Mono, 2-Stereo, etc.)

bits

number

Bits per audio sample.

[rate]

number

Sample rate in Hz (only available for audio input devices).

[encoding]

string

Audio encoding (e.g., "PCM_UNSIGNED", "PCM_SIGNED"); (only available for audio output device formats).

Also See: