Skip to content

Audio Channel Layout

Hossein HassanNejad edited this page Sep 10, 2026 · 1 revision

A channel layout defines how many audio channels are used in the output and how the audio is distributed between them.

Nyx Converter currently supports Stereo and Mono.


Example

await NyxConverter.convertTo(
  inputPath,
  outputDirectory,
  channelLayout: NyxChannelLayout.stereo,
);

Supported Channel Layouts

Layout Channels Description
Stereo 2 Uses separate left and right audio channels.
Mono 1 Combines audio into a single channel.

Stereo

Stereo audio uses two channels:

  • Left
  • Right

This allows sounds to be positioned between the left and right sides, creating a wider listening experience.

channelLayout: NyxChannelLayout.stereo,

Recommended for:

  • Music
  • Movies and videos
  • General-purpose audio
  • Most modern media

Mono

Mono audio uses a single audio channel.

channelLayout: NyxChannelLayout.mono,

Recommended for:

  • Voice recordings
  • Phone calls
  • Voice messages
  • Speech
  • Smaller audio files

Notes

  • Stereo produces 2 audio channels.
  • Mono produces 1 audio channel.
  • Channel conversion can reduce the size of an audio stream when converting stereo to mono.
  • channelLayout applies to audio streams.
  • The actual result also depends on the source media and FFmpeg configuration.

Clone this wiki locally