How do I add sound to my site?

Posted on 1999-07-02
Medium Priority
Last Modified: 2013-12-25
I'm pretty satisfied with the visuals at my web site, and I would now like to add sound, but I don't know how.  Are there utilities out there (preferably free) that would let me add sound files to my web site.

Relatedly, could somebody explain to me what "streaming" sound is, and how it contrasts with "non-streaming" sound?

Question by:skylar1
  • 5
  • 3
LVL 18

Accepted Solution

mgfranz earned 150 total points
ID: 1863714
To play .wav files you do this;

<EMBED SRC="./music.wav"  AUTOSTART="true" HIDDEN="true" LOOP="true" >

LVL 18

Expert Comment

ID: 1863715
Oh yeah, streaming audio is the process of playing audio or video over a network in real time, a fast network and a dedicated server are a benefit... When network traffic or bandwidth is slow, streaming becomes a tremendous challenge.

Check out www.realaudio.com to get more info on streaming.

Author Comment

ID: 1863716
Well, I added this line to my web page:
<P><EMBED SRC="Sound.wav" WIDTH="1" HEIGHT="1" ALIGN="BOTTOM" AUTOSTART="true" HIDDEN="true" loop="true"></P>

(The width, height and align variables are apparently mandatory in my software).

Nothing happens when I open the web page, though.  The graphics are fine, but there's no sound.  Any advice?
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

LVL 18

Expert Comment

ID: 1863717
Try this:
<EMBED SRC="Sound.wav" WIDTH="1" HEIGHT="1" ALIGN="BOTTOM"      AUTOSTART="true" HIDDEN="true" loop="true">
<bgsound src="Sound.wav">

And make sure the sound.wav is in the right path...  Actually, you might want to create a directory called sound, and then the path can be /sound/sound.wav.  So the tag would read;

<EMBED SRC="../sound/Sound.wav" WIDTH="1" HEIGHT="1" ALIGN="BOTTOM"   AUTOSTART="true" HIDDEN="true" loop="true">
<bgsound src="Sound.wav">

Author Comment

ID: 1863718
I the sound.wav is in the same directory as all other web page files, then I don't need to include any path information, right?  I can just say, ="Sound.wav", since the Sound.wav is in the same directory as the htm page source.  Is this correct?

Author Comment

ID: 1863719
I tried what you said.  I created a "Sounds" directory and put the Sound.wav file in it.  Still no sound.  Any further advice?
The source code for the page now looks like this:


<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<META NAME="GENERATOR" Content="Visual Page 1.1a for Windows">


<P><EMBED SRC="../Sounds/Sound.wav" WIDTH="1" HEIGHT="1" ALIGN="BOTTOM" AUTOSTART="true" HIDDEN="true" loop="true">
<bgsound src="Sound.wav"></P>
<P><IMG SRC="QuestBanner.gif" WIDTH="482" HEIGHT="58" ALIGN="BOTTOM" BORDER="0"></P>
<P><IMG SRC="bar013.gif" WIDTH="482" HEIGHT="10" ALIGN="BOTTOM" BORDER="0"></P>

<P><FONT SIZE="4"><I><B>The Gathering</B></I></FONT><B>, the first volume of the </B><FONT SIZE="4"><I><B>Questfor Creation</B></I></FONT><B> trilogy,<BR>follows Shalya, the premier sorceress of the multiverse...</B>


LVL 18

Expert Comment

ID: 1863720
Hmm... what version browser are you using?  I have used the following in my NS and IE browsers, >4.0 without a problem.

<EMBED SRC="Sound.wav" WIDTH="1" HEIGHT="1" HIDDEN="true">
 <!--The following is a non-standard Microsoft tag-->
<bgsound src="Sound.wav">

What happens if you open the sound.wav file from your browser window?  Does it play?

My email is mgfranz@pe.net if you have other questions.
LVL 18

Expert Comment

ID: 1863721
Your source file runs fine on my server and PC.  With a different .wav file of course...

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Ready to get certified? Check out some courses that help you prepare for third-party exams.
Now many of you may wonder how you can reach great design with least number of essentials. Isn’t stuffing ‘more and more number of elements that speak for the purpose’ the right way to do it? Erm, not always, and in this write-up, you will see why.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question