9 lines
200 B
JavaScript
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);
|