need help again
I use Webpack and I have audio file, this is how I load it:
const file = require('@/assets/filename.mp3')
const blob = new Blob(file) // it doesn't work
Now I need to get Blob from it.. I can't understand how to do that.
And the final goal is to get audioBuffer
Thank you for any answers
Use the Fetch API to request the file from the server. Then read it as an
ArrayBufferand decode it to anAudioBufferby using theBaseAudioContext.decodeAudioData()method.