Comments (2)
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.
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)
- Prototyping arrays + dancer.js
- [enhancement] [audio-data-api] Check Latest Firefox Mp3 playback support
- sounds glitches after change of audio src HOT 2
- Documentation for Flash Fallback
- MediaStream from Web RTC API as a data source? HOT 6
- Allow user configuration of SAMPLE_SIZE HOT 1
- Can't get any data in FF22
- Insecure Operations FF21 - adapterMoz.js
- Browserify HOT 1
- isUnsupportedSafari needs updating
- Work on iOS / android? HOT 1
- Uncaught Error(s) when playing live streams? HOT 2
- Demo fails in Fx 30
- Stopped working in Chrome as well HOT 3
- Play two dancer instances at the same time
- Demo failed when play in IE 11(win7 and win8)
- Fatal crashes in new versions on io example
- blob audio url
- Demo doesn't run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dancer.js.