How to Embed an MP3 Audio File to Your Website

If you want to add an MP3 audio file to your website then copy the code below, replace  [mp3 file address] with the actual file address, e.g. http://www.mysite.com/files/myaudio.mp3 and add it to the html of your web page:

<embed src=

http://www.odeo.com/flash/audio_player_standard_black.swf

quality=”high” width=”300″ height=”52″ allowScriptAccess=”always”

wmode=”transparent”  type=”application/x-shockwave-flash”

flashvars= 

auto_play=true&valid_sample_rate=true&external_url=[mp3 file address]“

pluginspage=”http://www.macromedia.com/go/getflashplayer“>

</embed>

The audio will autoplay when the web page is opened. If you don’t want it to automatically play then remove the section of code in red.

The player appears like this on your page:

audio_player

  • Share/Bookmark

Leave a Comment

Your email is never published nor shared.

(required)
(required)