How configure different Audio Channel Layout

The Audio Channel Layout refers to the details of the content of each audio channel, and the nature of sound reproduction or the way sound is played out. The two most common used Channel Layouts are mono and stereo, but also surround sound flavours and customised configurations are possible.

Mono

const config = {
  licenseKey: <YOUR_LICENSE>,
  div: <YOUR_DOM_ELEMENT>,
  src: <YOUR_URL>,
  preferredAudioChannelLayout: 'mono',
};

Stereo

const config = {
  licenseKey: <YOUR_LICENSE>,
  div: <YOUR_DOM_ELEMENT>,
  src: <YOUR_URL>,
  preferredAudioChannelLayout: 'stereo',
};

Surround

const config = {
  licenseKey: <YOUR_LICENSE>,
  div: <YOUR_DOM_ELEMENT>,
  src: <YOUR_URL>,
  preferredAudioChannelLayout: 'surround',
};