nodster icon indicating copy to clipboard operation
nodster copied to clipboard

Streaming

Open mimoo opened this issue 10 years ago • 1 comments

this is not really streaming as we need to download the whole mp3 into buffer.mp3 to then read it with html5 Audio. A perfect solution would be to do:

var stream = require('stream');
var buffer = stream.Writable();
buffer.pipe(audio);

where audio would be a direct audio exit, there seems to be good node libraries for that:

  • https://github.com/TooTallNate/node-speaker
  • https://github.com/TooTallNate/node-lame

need to look into it.

mimoo avatar Apr 24 '14 16:04 mimoo

maybe use player: https://www.npmjs.org/package/player

mimoo avatar Apr 30 '14 21:04 mimoo