-
Notifications
You must be signed in to change notification settings - Fork 1
Audio
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.
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 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 is done using a FIR filter.
Audio conversion is done by taking the averages of the two channels in order to create 1 channel.