rochars / wavefile

Create, read and write wav files according to the specs. :star: :notes: :heart:
MIT License
226 stars 48 forks source link

Can I make new WaveFile(...) from browser? #10

Closed prostoandrei closed 5 years ago

prostoandrei commented 6 years ago

Hello!

I have only a link to file on remote server. How can I make WaveFile from browser?

var WaveFile = new WaveFile('./trueWav.wav');
console.log(wav.chunkSize);

returns Uncaught Error: Not a supported format.

How can I make a buffer from it in browser?

Thank you :)

rochars commented 5 years ago

WaveFile currently do not have any method for reading remote files. You should somehow download the file and then use WaveFile to read it.

Thanks! Rafael