From db0597ada575644307c20e1b1bef811aafc29047 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Mon, 23 Jul 2018 09:45:27 -0500 Subject: [PATCH] Get rid of some config that Safari cannot handle and was part of the older getUserMedia. (#1297) --- src/extensions/scratch3_speech/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index d25714a6d..b7585de75 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -550,14 +550,7 @@ class Scratch3SpeechBlocks { // Safari still needs a webkit prefix for audio context this._context = new (window.AudioContext || window.webkitAudioContext)(); this._audioPromise = navigator.mediaDevices.getUserMedia({ - audio: { - echoCancellation: true, - channelCount: 1, - sampleRate: { - ideal: 16000 - }, - sampleSize: 16 - } + audio: true }); const tempContext = this._context;