Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Audio on website (https://www.askmehelpdesk.com/showthread.php?t=20667)

  • Feb 14, 2006, 01:38 PM
    klmgb
    Audio on website
    What I am trying to do is add audio to my website. I got audio working by using this:
    <embed src="http://myisp.com/me/audio/playlist.m3u"
    type="audio/mpeg" loop="true" hidden="true"
    autostart="true" >
    and then I built a playlist in notepad and added it to my site, put everything in the proper place finally!!! and voilą, everything works ------- as long as I have only .mp3's on my playlist. If I add a .wav file it will not play it. Is there a particular reason, or how can I convert a .wav to .mp3. The .wav is just a voice recording. Any help would be appreciated.
  • Feb 14, 2006, 04:22 PM
    retsoksirhc
    The reason the WAV file is not working is PROBABLY because you have the type set to MPEG, which MP3 is (MP3 stands for MPEG-layer 3). I believe if you take out the whole 'type' part, it should automatically play whichever type you put in. So try it like this:

    <embed src="http://myisp.com/me/audio/audiofile.wav" loop="true" hidden="true" autostart="true" >

    It would probably be best to convert the file to MP3 format, though, as they take up less space, and load faster on webpages. You shuold be able to do this easily, with just the windows sound recorder utility.

    Click start>Programs>Accessories>Entertainment>Sound recorder
    Open the file you want to convert
    Click File>Save As
    Where it says Format, click Change
    In the box next to Format, change it to MPEG Layer 3, and select a frequency and bitrate (If you're not sure, the default should work fine)
    Click OK
    Pick a new filename, and add .mp3 to the end of it (for example, myconvertedsound.mp3)
    And click save

    Should be able to get you everything you need.
  • Feb 14, 2006, 05:16 PM
    klmgb
    I converetd to MP3 with the sound recorder, thanks, didn't know I could do that. Works now, but for future reference. If I just use type="audio", should it play all files on the playlist of varying types?

    Thanks
  • Feb 15, 2006, 02:55 AM
    LTheobald
    Just leave out the type. I don't think audio on it's own would be valid. MIME types have two parts separated by a backslash. E.g.:

    Text/plain
    Text/html
    Audio/mpeg
    video/quicktime

  • All times are GMT -7. The time now is 06:23 AM.