Coder Social home page Coder Social logo

opus.js's Introduction

opus.js

An Opus audio decoder for aurora.js, ported using Emscripten.

Browser usage

You can either use Browserify to build your project using the Node module system, or download standalone versions of aurora.js, ogg.js, and opus.js to include as <script> tags on your HTML page.

See the Aurora.js docs for details on using Aurora.js.

Node usage

Install using npm:

npm install av opus.js

Register codecs and play a file:

var AV = require('av');
require('opus.js'); // and any other codecs you want...

AV.Player.fromFile('filename.ogg').play();

In node, requiring opus.js automatically loads the ogg.js demuxer.

See the Aurora.js docs for more details.

Building from source

  1. Install Emscripten.
  2. Run make to fetch and build the submodules, and to build the emscripten lib. Run this again whenever you make changes to the C wrapper or a new version of libogg is released.
  3. Run make browser to generate a browser version of opus.js, or use browserify to build your application.

License

libopus is available under its existing license, and the JavaScript and C wrapper code in this repo for Aurora.js is licensed under MIT.

opus.js's People

Contributors

devongovett avatar hraban avatar

Stargazers

Roman 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.