var xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
xhr.onload = function() {
var a = document.createElement('a');
a.href = window.URL.createObjectURL(xhr.response);
a.download = 'filename.opus'; // You can name the file here
a.style.display = 'none';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
};
xhr.open('GET', 'BLOB_URL_HERE');
xhr.send();
var xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
xhr.onload = function() {
var a = document.createElement('a');
a.href = window.URL.createObjectURL(xhr.response);
a.download = 'filename.opus'; // You can name the file here
a.style.display = 'none';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
};
xhr.open('GET', 'BLOB_URL_HERE');
xhr.send();