You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsrc="http://localhost/binarystream.js"></script><scriptsrc="http://localhost/pcmdata.js"></script><script>fetch("https://raw.githubusercontent.com/Binaryify/amrToMp3/master/src/amr/abcdef 1544497148360.1526463056869.amr").then(resp=>resp.arrayBuffer()).then(ab=>{varincomingData=newUint8Array(ab);// create a uint8 view on the ArrayBuffervari,l=incomingData.length;// length, we need this for the loopvaroutputData=newFloat32Array(incomingData.length);// create the Float32Array for outputfor(i=0;i<l;i++){outputData[i]=(incomingData[i]-128)/128.0;// convert audio to float}varwaveData=PCMData.encode({sampleRate: 8000,channelCount: 1,bytesPerSample: 2,data: outputData});varelement=newAudio();element.src="data:audio/wav;base64,"+btoa(waveData);element.play();});</script>
The text was updated successfully, but these errors were encountered:
from 'https://github.com/jussi-kalliokoski/pcmdata.js/tree/master/js ' download javascript
The text was updated successfully, but these errors were encountered: