Haha-Yes/node_modules/node-opus/test/old/encode-file.js
2018-09-09 21:20:36 +02:00

12 lines
250 B
JavaScript

var ogg = require( 'ogg' );
var opus = require( '../../' );
var oggEncoder = new ogg.Encoder();
var opusEncoder = new opus.Encoder();
process.stdin.pipe( opusEncoder );
opusEncoder.pipe( oggEncoder.stream() );
oggEncoder.pipe( process.stdout );