Community Forums Archive

Go Back

Subject:How to embed sound in webpage
Posted by: DanAyo
Date:12/11/2002 5:34:50 PM

I would like to embed a 30 sound clip into a webpage.

I run a fishing charter buisness and I would like to put a short clip of me talking the client to catch the fish. It needs to load automatically.

I would like the code if possible. Also what file format should I use to reach the most viewers. I am familiar with streaming audio, but I've never dealt with an instant loading 30 second sound clip.

Your help in appreciated,
Danny Ayo
www.flyfishlouisiana.com

Subject:RE: How to embed sound in webpage
Reply by: Chienworks
Date:12/12/2002 7:02:38 AM

<embed src=wow.wav autostart=true width=150 height=60>

Of course, replace "wow.wav" with your sound file. .wav is the most universally playable type on most systems. You can often get away with 8KHz, 8 bit mono for voice; that would result in about 240Kbytes for 30 seconds. Most anyone on a good 56K connect or faster will be able to download that in a reasonable amount of time as long as you don't have too many huge graphics on the page. You could try MP3 instead of WAV since almost all browsers include some sort of MP3 player these days. This will give you a better sounding file in less bytes. The few people that don't have an MP3 player will be made up for by the Mac crowd that can hear MP3 instead of WAV.

As an aside ... personally i really dislike web pages that automatically play sounds. I prefer to have "autostart=false", place the code near the top of the page, and include a message that tells the audience to click the play button if they want to hear it.

Subject:RE: How to embed sound in webpage
Reply by: Jessariah
Date:12/13/2002 6:42:15 PM

I'm with Kelly. Nothing more irritating than having sound auto play when I go to a website -- especially when it's that cheezy MIDI crap that sounds like a bad wedding band...

Subject:RE: How to embed sound in webpage
Reply by: rraud
Date:12/13/2002 7:54:43 PM

Same here, auto-play IS annoying and will slow down your page load also.

Go Back