Skip to content

Instantly share code, notes, and snippets.

View jayshields's full-sized avatar
💻
Working hard!

Jamie Shields jayshields

💻
Working hard!
View GitHub Profile
@jayshields
jayshields / playAudioAsBlobViaAjax.js
Created June 14, 2023 11:47 — forked from praveenpuglia/playAudioAsBlobViaAjax.js
Download Audio from AJAX and Play as Blob
var a = fetch("http://path/to/audio.wav")
.then(res => {
var reader = res.body.getReader();
return reader.read().then(result => {
return result;
});
})
.then(data => {
console.log(data);