diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index 9ffc24fa5..7e2ff7126 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -546,7 +546,8 @@ class Scratch3SpeechBlocks { * @private */ _initializeMicrophone () { - this._context = new AudioContext(); + // Safari still needs a webkit prefix for audio context + this._context = new (window.AudioContext || window.webkitAudioContext)(); this._audioPromise = navigator.mediaDevices.getUserMedia({ audio: { echoCancellation: true,