linx-simulator2/node_modules/lame/examples/mp3player.js

9 lines
200 B
JavaScript
Raw Normal View History

2019-09-18 08:11:16 +00:00
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);