mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Get rid of some config that Safari cannot handle and was part of the older getUserMedia. (#1297)
This commit is contained in:
parent
f3451cea91
commit
db0597ada5
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue