From 106766e3e193be8ec4223296576a0982645278d7 Mon Sep 17 00:00:00 2001 From: JanMisker Date: Wed, 8 Oct 2014 12:21:53 +0200 Subject: [PATCH] Added audio constraints needed to get clear audio Since Chrome 37 certain audio filters are enabled by default, these constraints switch them off. --- example_simple_exportwav.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/example_simple_exportwav.html b/example_simple_exportwav.html index 23885113..276a53b9 100644 --- a/example_simple_exportwav.html +++ b/example_simple_exportwav.html @@ -95,7 +95,17 @@

Log

alert('No web audio support in this browser!'); } - navigator.getUserMedia({audio: true}, startUserMedia, function(e) { + var audioOpts = { + mandatory: { + googEchoCancellation: false, + googAutoGainControl: false, + googNoiseSuppression: false, + googHighpassFilter: false + }, + optional: [] + }; + + navigator.getUserMedia({audio: audioOpts}, startUserMedia, function(e) { __log('No live audio input: ' + e); }); };