mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -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
|
// Safari still needs a webkit prefix for audio context
|
||||||
this._context = new (window.AudioContext || window.webkitAudioContext)();
|
this._context = new (window.AudioContext || window.webkitAudioContext)();
|
||||||
this._audioPromise = navigator.mediaDevices.getUserMedia({
|
this._audioPromise = navigator.mediaDevices.getUserMedia({
|
||||||
audio: {
|
audio: true
|
||||||
echoCancellation: true,
|
|
||||||
channelCount: 1,
|
|
||||||
sampleRate: {
|
|
||||||
ideal: 16000
|
|
||||||
},
|
|
||||||
sampleSize: 16
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const tempContext = this._context;
|
const tempContext = this._context;
|
||||||
|
|
Loading…
Reference in a new issue