Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JavaScript audio decoding framework

NotificationsYou must be signed in to change notification settings

audiocogs/aurora.js

Repository files navigation

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

Check out thedocumentation to learn more about using andextending Aurora.

Demo

We have written several decoders using Aurora.js, whose demos you can findhereand whose source code can be found on ourGithub page.

Authors

Aurora.js was written by@jensnockert and@devongovettofAudiocogs.

Usage

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

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

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

npm install av

Then, require the module and codecs you need:

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

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

Building

We usebrowserify to build Aurora.js. To build Aurora.jsfor the browser yourself, use the following commands:

npm installmake browser

This will place a builtaurora.js file, as well as a source map in thebuild/ 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.

About

JavaScript audio decoding framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors13


[8]ページ先頭

©2009-2025 Movatter.jp