HTML audio: Difference between revisions

Content deleted Content added
Richtaur (talk | contribs)
No edit summary
Line 4:
==<Audio> element==
Simple playback of an audio file:
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" autoplay/>
</audio>
 
This table documents the current support for audio codecs by the <code>&lt;audio&gt;</code> element.
Line 47 ⟶ 46:
|}
 
==AudioWeb DataAudio API==
The [[Web Audio API]] specification describes a high-level JavaScript API for processing and synthesizing audio in web applications. The primary paradigm is of an audio routing graph, where a number of AudioNode objects are connected together to define the overall audio rendering. The actual processing will primarily take place in the underlying implementation (typically optimized Assembly / C / C++ code), but direct JavaScript processing and synthesis is also supported.<ref>{{cite web | url=https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | title=Web Audio API}}</ref>
The current HTML5 media API provides ways to play and get limited information about audio and video, but gives no way to programatically access or create such media. The Audio Data API allows web developers to read and write raw audio data.<ref>{{cite web | url=https://wiki.mozilla.org/Audio_Data_API | title=Audio Data API | accessdate=January 28, 2012}}</ref>
It intends to allow real-time [[audio processing]] in javascript.
 
==Speech API==
Line 58 ⟶ 56:
*Text to Speech API
 
Google integrated this feature into Google Chrome on March 2011.<ref>{{cite web | url=http://chrome.blogspot.com/2011/03/talking-to-your-computer-with-html5.html | title=Talking to your computer | accessdate=January 28, 2012}}</ref> Letting its users search the web with their voice bywith doing:code like:
<script type="text/javascript">
function startSearch(event) {