Base64toarraybuffer Error: Failed To Execute 'atob' On 'window'. (web Audio Api)
So I'm pretty new to the Web Audio API, having only heard about it 4 days ago (though since then I've put in probably about 50 hours of research and experimentation with it). I'm a
Solution 1:
Your base64 is invalid.
Looks to me like you're missing an A
on the end. If you add it, it decodes just fine.
Also note that if you're using atob
, you won't include the data URI portion.
If you do have a data URI to begin with, you should use the Fetch API to get a Blob, so that way the MIME type is included. You can then decode audio data directly from it. See also: https://stackoverflow.com/a/62677424/362536
Post a Comment for "Base64toarraybuffer Error: Failed To Execute 'atob' On 'window'. (web Audio Api)"