Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between web audio and html5 audio anyway?

Tags:

I've just asked a question about audio, and people suggest that this is a question about html5-audio instead of web audio.

So i wonder what's the difference?

like image 834
kikkpunk Avatar asked Oct 29 '12 12:10

kikkpunk


People also ask

Which of the following statements about web audio API of HTML5 is are true?

Q 2 - Which of the following is true about 'audio' tag in HTML5? A - HTML5 supports <audio> tag which is used to embed sound content in an HTML or XHTML document.

Which audio format is not supported by HTML5?

aLaw audio format is not supported by HTML5 audio tag.

What is the difference between audio and video in HTML5?

Audio and video are not HTML parts whereas audio and video tags are supported in HTML5. In HTML, Web Socket is not available, on the other hand in HTML5 you can establish full-duplex communication channels with a server using Web Sockets.

How to add audio in HTML5?

HTML Audio - How It Works. The controls attribute adds audio controls, like play, pause, and volume. The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format. The text between the <audio> and </audio> tags will only be displayed in browsers that do not ...

What is the difference between HTML and HTML5?

There are many differences between HTML and HTML5 which are discussed below: It didn’t support audio and video without the use of flash player support. It supports audio and video controls with the use of <audio> and <video> tags. It uses cookies to store temporary data. It uses SQL databases and application cache to store offline data.

What are the audio formats supported by HTML5?

Currently, there are 3 supported “audio formats” for the HTML5 “audio” tag: .mp3, .ogg, and .wav. Definitions: .mp3 = MP3 files, the “sound” part of the MPEG audio/video file-format.


1 Answers

These two concepts are different.

For example, the Introduction paragraph of the W3C proposed standard for Web Audio makes statements like
The introduction of the audio element in HTML5 is very important, allowing for basic streaming audio playback. But, it is not powerful enough to handle more complex audio applications.

Hence hinting at the difference between these two concepts:

HTML5 Audio element = basic playback by embedding audio data in HTML.

Web Audio API = An ECMA Script (JavaScript) based API to support audio capabilities comparable to these of a modern stand-alone PC, such as:

  • mixing
  • processing and filtering (e.g. cave or cathedral effects etc., distance attenuation, doppler shift etc...
  • tasks related to audio production applications
  • capabilities found in modern game audio engines

A word of caution: As of late October 2012, this API is still relatively new and not supported on all browsers and mobile devices. caniuse.com site may be useful to determine the amount of support found for HTML5 and various related technologies on different platforms. The fact that W3C drafts standards for Web Audio is a strong indication that this API will, in time, receive universal acceptance and broad support, but this is not yet the case.

like image 161
mjv Avatar answered Oct 03 '22 17:10

mjv