Code Monkey home page Code Monkey logo

Comments (2)

likethemammal avatar likethemammal commented on September 26, 2024

I tried this at some point. The Web Audio API doesn't process audio data all at once, its only in real-time while the song is playing.

I've also searched and come across one possible workaround using some sort of image processing function after get the song as an ArrayBuffer from an AJAX call or the like. I don't remember the exact function calls, but I know it didn't work, otherwise I would've documented lol.

I've also tried pushing the limit of the "real-time" processing. Changing the playbackRate of any audio source will speed up the Web Audio API's processing of audio data. IDK if this means theres less precision in the data, but either way you can get it back multitudes faster. However, though I didn't see any documented limit, it seems that the browser vendors don't implement a large enough playbackRate to decode a 2:00 minute song in less than 30 seconds or so. No where near worth it.

As far as I know, there is no known way to decode all at once in the browser, without having a server help decode at some point.

from dancer.js.

jackrugile avatar jackrugile commented on September 26, 2024

Hey, thanks so much for the response on this. That playbackRate trick is super interesting :) Looks like I'll just stick with the server for now. Take care!

from dancer.js.

Related Issues (20)

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.