I am working on an application using node-webkit in which I need to play audio. I have successfully played audio using the web audio API and XMLHttpRequest, but loading the song is very slow. It takes up to 1 second depending on the format and size.
Is there a way to upload a file using the node.js file system and then transfer this data to the web audio API to reduce download time? Is there a better way to do this?
Note. I am creating my own application, so I want to play audio so as not to transmit it to clients. I also need to be able to handle audio, so I looked at the web audio API.
source share