-
Notifications
You must be signed in to change notification settings - Fork 35
Description
If you try to DJ from an external device via an analogue line-in input device instead of a microphone, the audio sounds terrible. The reason is that browsers do lots of processing on the audio to improve the clarity of voice from builtin laptop/phone microphones. This processing destroys music.
The solution is to disable processing via constrains when you open the audio device:
constraints = {
audio: {
echoCancellation: false,
noiseSuppression: false,
autoGainControl: false,
}
};
Obviously you don't want to turn all these off if actually using a microphone, so you'd need an option in the GUI. Ideally, one could have a microphone input and line-in input and you could use both at once. I'm not sure if browsers support two inputs at a time, if not then an option to configure the single input to be microphone or line-in.