70 likes | 308 Views
Sound on the Web. Incorporating sound into your site. Issues. http://www.phon.ucl.ac.uk/home/mark/audio/play.htm <EMBED> (Internet Explorer 4.0x, Navigator 3.0x, 4.0x) <BGSOUND> (Internet Explorer 3.0x, 4.0x) <OBJECT> (Internet Explorer 4.0x) <A><IMG></A> (Internet Explorer 4.0x)
E N D
Sound on the Web Incorporating sound into your site
Issues http://www.phon.ucl.ac.uk/home/mark/audio/play.htm • <EMBED> (Internet Explorer 4.0x, Navigator 3.0x, 4.0x) • <BGSOUND> (Internet Explorer 3.0x, 4.0x) • <OBJECT> (Internet Explorer 4.0x) • <A><IMG></A> (Internet Explorer 4.0x) • Realplayer • MP3 versus WAV
SoundManager2 • Flash solution (i.e., requires Flash player 8) • Loads a Flash applet, then tells it to load individual MP3s • http://www.schillmania.com/projects/soundmanager2/
<script type="text/javascript" src="soundmanager2.js"> </script> <script type="text/javascript">soundManager.url = 'soundmanager2.swf'; soundManager.onload = function() { } function laugh() { soundManager.play('mySound0', 'sounds/laughter.mp3'); } </script> <button onclick="laugh();">Do this</button>
function laugh() { soundManager.play('mySound0', 'sounds/laughter.mp3'); } function voiceOver() { soundManager.play('mySound1', 'sounds/voiceover.mp3'); } </script> <button onclick="laugh();">Do this</button> <button onclick="voiceover();">read the page</button>
Audacity -- Free sound editor! • http://audacity.sourceforge.net/ • Free • Open Source • Cross Platform • [demo audacity on the Mac]