How to set up sample rate using web audio API?
问题 I have blob type generated by webaudio API, but the file that is saved have to high sample rate. How can I convert it to lower maybe something like https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext can help? Here is some sample of code: var xhr = new XMLHttpRequest(); /* HERE IS SOME CONVERTATION TO LOWER RATE */ var fd = new FormData(); fd.append("randomname", bigBlob); xhr.open("POST",url,false); xhr.send(fd); xhr.onload=function(e) { alert(e.target.responseText); }; 回答1: