Web Audio API

Did you know that you can read content offline by using one of these tools? If you would like to read offline MDN content in another format, let us know by commenting on Bug 665750.

Dash App

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

Show the ability of AudioNodes to connect via their inputs and outputs and the channels inside these inputs/outputs.La Web Audio API es un API diseñada  para manipular and play audio assets on a Web page or application.

The API has been designed to allow modular routing. Basic audio operations are performed by audio nodes that are linked together to form an audio routing graphs. Inside a same context, several sources are supported, with different kind of channel layout. This modular design allows for great flexibility and for the creation of complex audio functions and of dynamic effects.

Audio nodes are linked via their inputs and outputs. Each input or output is composed of several channels representing a specific audio layout. Though mono, stereo, quad and 5.1 audio layouts are supported, any discrete layouts are supported.

Sources of audio can be very various: it can be generated directly in JavaScript by a specific audio node, like an oscillator, a custom function, or even a simple array of data, it can be linked to an HTML media element, like <video> or <audio>, or it can come from a WebRTC MediaStream, that is from a local device camera or even from a distant computer.

Timing is controlled with high precision, to the sample, and very low latency: it allows for carefully definition of events required by drum machines or sequencers.

The Web Audio API also allows to control how the audio are spatialized: using a system based on a source-listener model, it allows to controls the panning model to be used, automatically deals with distance-induced attenuation, or doppler shift induced by a moving source, or listener.

Reference

Tutorials

Specifications

Specification Status Comment
Web Audio API Working Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes)webkit Activated on Nightly only Not supported Not supported 6 webkit
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? Activated on Nightly only Not supported Not supported 6 webkit

 

Archivos adjuntos (1)

Archivo Tamaño Fecha Adjunto por
AudioNodes and Channels
Show the ability of AudioNodes to connect via their inputs and outputs and the channels inside these inputs/outputs.
32478 bytes 2013-04-24 01:53:12 teoli