How to disable getUserMedia audio processing in Chrome

637 views
Skip to first unread message

Christoffer Jansson

unread,
Dec 2, 2014, 3:52:55 AM12/2/14
to discuss...@googlegroups.com
Background
Since M37 it's possible to disable getUserMedia audio processing in Chrome using one "master" constraint, namely echoCancellation. Same result could (and still but using the mandatory constraints object) previously be achieved as well by explicitly passing false in the constraints for all audio processing options.

Why do I want to turn off getUserMedia audio processing?
This is useful if using high quality recording equipment where you want a raw signal, sending the input signal to webaudio and applying effects or stereo input from a stereo microphone etc.

Among other things like AEC, AGC it also disables audio ducking (Windows only, can also be turned off separately) which is useful for demo pages using more than one output stream..

How do I turn off getUserMedia audio processing?
Pass echoCancellation = false as an optional audio constraint when requesting getUserMedia.

Example:
var constraints = {audio: { optional: [ echoCancellation: false] } };

Reply all
Reply to author
Forward
0 new messages