Giter Site home page Giter Site logo

amr.js's People

Contributors

jpemartins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

amr.js's Issues

can't use

from 'https://github.com/jussi-kalliokoski/pcmdata.js/tree/master/js ' download javascript

	<script src="http://localhost/binarystream.js"></script>
	<script src="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=>{		
    var incomingData = new Uint8Array(ab); // create a uint8 view on the ArrayBuffer
    var i, l = incomingData.length; // length, we need this for the loop
    var outputData = new Float32Array(incomingData.length); // create the Float32Array for output
    for (i = 0; i < l; i++) {
        outputData[i] = (incomingData[i] - 128) / 128.0; // convert audio to float
    }
    var waveData = PCMData.encode({
      sampleRate: 8000,
      channelCount:   1,
      bytesPerSample: 2,
      data: outputData
    });
	
    var element = new Audio();
    element.src = "data:audio/wav;base64,"+btoa(waveData);
    element.play();	
  });
</script>

License?

Thanks for publishing this, it's exactly what I needed. Does it use the same license as opencore-amr (Apache)?

It's not working...

high,

Thanks for posting this. Unfortunately, I haven't been able to get it working in Chrome. It does not decode AMR files recorded in Android 3.x nor 4.x and I cannot initiate WAV file playback either. I've been digging through the code for a couple of days now. Everything runs smoothly and I can verify that sound files are being read. I just don't get any sound nor am I able to write files. Can you help me with this?

Thanks,

Jair-Rôhm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.