GithubHelp home page GithubHelp logo

avorio / aurora.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from audiocogs/aurora.js

0.0 1.0 0.0 3.03 MB

JavaScript audio decoding framework

Home Page: http://audiocogs.org/codecs

Makefile 0.35% CoffeeScript 72.40% JavaScript 24.74% HTML 0.59% CSS 1.92%

aurora.js's Introduction

Aurora.js

Aurora.js is a framework that makes writing audio decoders in JavaScript easier. It handles common tasks for you such as dealing with binary data, and the decoding pipeline from source to demuxer to decoder, and finally to the audio hardware itself by abstracting browser audio APIs. Aurora contains two high level APIs for inspecting and playing back decoded audio, and it is easily extendible to support more sources, demuxers, decoders, and audio devices.

Check out the documentation to learn more about using and extending Aurora.

Demo

We have written several decoders using Aurora.js, whose demos you can find here and whose source code can be found on our Github page.

Authors

Aurora.js was written by @jensnockert and @devongovett of Audiocogs.

Usage

You can use Aurora.js both in the browser, as well as in Node.js. In the browser, you can either download a prebuilt release or use browserify to build it into your own app bundle (see below for Node.js usage - it's the same for browserify).

<script src="aurora.js"></script>
<script src="mp3.js"></script>
<!-- more codecs here -->

To use Aurora.js in Node.js or a browserify build, you can install it from npm:

npm install av

Then, require the module and codecs you need:

var AV = require('av');
require('mp3');
// more codecs here...

For much more detailed information on how to use Aurora.js, check out the documentation.

Building

We use browserify to build Aurora.js. To build Aurora.js for the browser yourself, use the following commands:

npm install
make browser

This will place a built aurora.js file, as well as a source map in the build/ directory.

By itself, Aurora will play LPCM, uLaw and aLaw files in a number of containers. Be sure to add additional codec support by including some of our other decoders:

If you want to build Aurora without the default codecs, you can use the "browser_slim" profile:

make browser_slim

This can help shave off approx. 30 KB from the joined file, or 20 KB when minified.

License

Aurora.js is released under the MIT license.

aurora.js's People

Contributors

devongovett avatar fabslab avatar sebpiq avatar crackofdusk avatar auroranockert avatar artskydj avatar laurence-myers avatar allphat avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.