Skip to content
Henry Xu edited this page Dec 8, 2020 · 13 revisions

This Wiki Page details the different algorithms and processing techniques used to move audio throughout the system.

TL;DRs

Discord Audio

Discord provides audio through a NodeJS stream. Streams are created per user. Audio data is only passed through the stream when the user is speaking, so no silence is included in the stream.

Merging

Merging multiple Discord Audio Streams so that they are synchronized with time requires insertion of silence. Once they have the right amount of silence inserted, they can be mixed normally.

Downsampling

Downsampling is done using a FIR filter.

Audio Channels Conversion

Audio conversion is done by taking the averages of the two channels in order to create 1 channel.

Discord Audio

Merging

Downsampling

Stereo Mono Conversion

Clone this wiki locally