using audio files

Hi experts
what is the best way and best format from using and audio file ?
amiriAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

alexmayCommented:

Not sure if this is the best way, but I used the following and it seems to work fine:

<EMBED src="audiofile.wav" autostart="true" hidden="true">

Here I just wanted to play a simple audio file as soon as the page loaded.
If you want something more clever, let us know exactly what you need.
0
itcnbwiseCommented:
You might want to use some form of compressed audio file, such as making it a Real Media (.rm) or mp3 file.  That would load much faster than a wav file.
0
JoshPowellCommented:
The only problem with the above, is that they are very much non cross browser compatible, and will not work correctly it the user doesn't have the player.

The best way I have found, is to use a program (or code it yourself) and create a flash (.swf) file that is a little player. It is crossbrowser, and widely compatible (flash flayer is avaible in just about every platform).

A good program to do that can be found at http://www.soundnails.com/

NOTE: cnet.com uses something smilar to this for its video player :)

Josh
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

itcnbwiseCommented:
mp3's have nothing to do with browser compatibility.  If you have an mp3 player on your system, and almost all modern ones do, it will play.  Just make a link to the file and off it goes.

Unfortunately, however, many users do not have the Flash plugin installed, which is required to play swf files, so I never code in flash.

0
JoshPowellCommented:
Actually, I find more users with flash than I do with Real or Quicktime ;)


Josh
0
itcnbwiseCommented:
I definitely agree that's true.  But I know more systems come with pre-installed mp3 players than flash.  IE doesn't even come with Flash installed.
0
JoshPowellCommented:
My emachines system came with flash installed.. but yeah.. you are right about more MP3 players.

Its just that if you are trying to embed MP3s, it gets really finicky in Firefox.

Josh
0
alexmayCommented:
I guess it really depends on how you define "best".
If you want something that everyone will be able to hear without any additional software, stick with a wav like I said above.
If you want to include a lot of audio so that download speed or quality is a bigger issue, then one of the other formats is better.
Let us know what exactly you are looking for.
0
alexmayCommented:
Sorry, but I object!
What was wrong with my answer?
I think the points should at least be split.
regards,
Alex May
0
Michel PlungjanIT ExpertCommented:
That flash is supported and will play on a lot more machines and platforms than an embedded wav file in my experience...

That aside, I tried the soundnail and that did not work on my pc, but that does not mean the idea is not a good one

the question was: What is the best way and I agree with Josh and you even yourself said "Not sure if this is the best way"

So..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

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.