linx-simulator2/node_modules/lame/examples/mp3player.js
2019-09-18 11:11:16 +03:00

9 lines
200 B
JavaScript

var fs = require('fs');
var lame = require('../');
var Speaker = require('speaker');
fs.createReadStream(process.argv[2])
.pipe(new lame.Decoder)
.on('format', console.log)
.pipe(new Speaker);