Skip to content

A component for encoding PCM data to Ogg Vorbis in the browser

Notifications You must be signed in to change notification settings

itsjoesullivan/iago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

###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
});

About

A component for encoding PCM data to Ogg Vorbis in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages