HTML5 Audio is a subject of the HTML5 draft specification, investigating the playing, generating and synthesising audio in the browser. It includes audio input, playback, audio synthesis, as well as speech to text.
<Audio> element
Simple playback of an audio file:
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" autoplay>
Your browser does not support the audio
element.
</audio>
This table documents the current support for audio codecs by the <audio>
element.
Trident | Gecko | WebKit | Presto | |
---|---|---|---|---|
Ogg Vorbis | No | 1.9.1[g 1] | Depends | 2.5 |
WAV PCM | 525 | 2.0 | ||
MP3 | 5.0[t 1] | No[g 2] | Depends | |
AAC | No | |||
Speex | No | No[g 3] | Depends[note 1] | No |
Speech API
The speech input API aims to provide an alternative input method for web applications (without using a keyboard). The HTML Speech Incubator group has proposed the implementation of audio-speech technology in browsers in the form of uniform, cross-platform APIs that can be used to buildweb applications. The API contains both:
- Speech Input API
- Text to Speech API
See also
References
- ^ Cite error: The named reference
gecko191-media
was invoked but never defined (see the help page). - ^ Bug 562730 - Reproducing Mp3 files with html5, Mozilla
- ^ Bug 476752 - support the speex voice codec in <audio> and <video> elements, Mozilla
Cite error: There are <ref group=t>
tags on this page, but the references will not show without a {{reflist|group=t}}
template (see the help page).
Cite error: There are <ref group=note>
tags on this page, but the references will not show without a {{reflist|group=note}}
template (see the help page).
- ^ "HTML5 Spech API". Retrieved January 28, 2012.