diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index 873c10032..a1ce64f60 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -196,12 +196,12 @@ class Scratch3SpeechBlocks { * @private */ _loadUISounds () { - const startSoundBuffer = assetData['speech-rec-start.mp3'].buffer; + const startSoundBuffer = assetData['speech-rec-start.mp3']; this._decodeSound(startSoundBuffer).then(buffer => { this._startSoundBuffer = buffer; }); - const endSoundBuffer = assetData['speech-rec-end.mp3'].buffer; + const endSoundBuffer = assetData['speech-rec-end.mp3']; this._decodeSound(endSoundBuffer).then(buffer => { this._endSoundBuffer = buffer; }); diff --git a/src/extensions/scratch3_speech/manifest.js b/src/extensions/scratch3_speech/manifest.js index e5ce54d59..cb76b3ac0 100644 --- a/src/extensions/scratch3_speech/manifest.js +++ b/src/extensions/scratch3_speech/manifest.js @@ -1,4 +1,4 @@ module.exports = { - 'speech-rec-start.mp3': require('!buffer-loader!./assets/speech-rec-start.mp3'), - 'speech-rec-end.mp3': require('!buffer-loader!./assets/speech-rec-end.mp3') + 'speech-rec-start.mp3': require('!arraybuffer-loader!./assets/speech-rec-start.mp3'), + 'speech-rec-end.mp3': require('!arraybuffer-loader!./assets/speech-rec-end.mp3') };