linx-simulator2/node_modules/node-opus/test/old/encode-file.js

13 lines
250 B
JavaScript
Raw Normal View History

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