mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
13 lines
250 B
JavaScript
13 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 );
|
|
|
|
|