HTML audio

This is an old revision of this page, as edited by Spencerk (talk | contribs) at 20:14, 28 January 2012. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

[1]


See also

References

  1. ^ Cite error: The named reference gecko191-media was invoked but never defined (see the help page).
  2. ^ Bug 562730 - Reproducing Mp3 files with html5, Mozilla
  3. ^ 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).

  1. ^ "HTML5 Spech API". Retrieved January 28, 2012.