#iago
Module for encoding Ogg in the browser.
- Stream to the encoder--your compressed audio is ready when the recording is finished
- Uses a web worker for the actual compression; UI thread is free
###Credit
- Thanks to halfvector for the heavy work on this:
- Thanks to devongovett for the ogg.js repo
- Thanks to shovon for moving ogg.js forward and improved documentation
###Usage
Install the component:
npm install iago
Use it:
var Iago = require('iago');
var context = new AudioContext();
var iago;
navigator.getUserMedia({ audio: true }, function(handle) {
var stream = context.createMediaStreamSource(handle);
iago = new Iago(stream);
});
// When finished:
iago.getBlob().then(function(blob) {
// blob is of type audio/ogg
});