Was: Download audio files from a website
Download audio files from a website | 387 |
Download audio files from a website | 648 |
Download audio files from a website | 812 |
Download audio files from a website | 665 |
Creating a link to an audio file on your web pages
There are two ways of doing this:
- Link directly to an mp3 file
This will allow the user to download the file, and once they have they can play it. While this allows the user to store the file on their iPod (or similar), it also has disadvantages:- The file may take a long time to download (of concern to those without good or cheap access to high bandwidth downloads like broadband)
- The user then has the file on their hard disk and can redistribute and/ or edit it as they please
- Link that allows 'progressive download' (m3u) - recommended
This method is easy to achieve - you can do it yourself - and has three main advantages:- The user can listen to the file immediately without waiting for a download
- The file is not put onto the user's hard disk where it can easily be redistributed
- But it does not allow the user to listen on their iPod (or similar)
It might be worth considering putting both means of getting the file on the page. Then those with problems with bandwidth can choose the progressive download and those who use an iPod can simply download the file.
How to put a link to an mp3 file on your website
You can do this simply by putting the file in your website and creating a link to it:
- Upload your mp3 file onto your website
Let's assume your file is called 'lecture.mp3' and your URL is www.lse.ac.uk/collections/department. If you go into your website and put your file into a folder called 'sound' the URL of your file will be:
www.lse.ac.uk/collections/department/sound/lecture.mp3 - Go to the relevant webpage and place a link to the above URL
When the user clicks on this link they will be given the option to download the file. They will have to wait until this is complete before they can play their copy of the file.
How to put an m3u file and link on your website
- Upload your mp3 file onto your website.
Let's assume your file is called 'lecture.mp3' and your URL is www.lse.ac.uk/collections/department.
If you go into your website and put your file into a folder called 'sound' the URL of your file will be:
www.lse.ac.uk/collections/department/sound/lecture.mp3 - Create your m3u file
- Open notepad and simply type in the URL of your file. In this example this would be:
http://www.lse.ac.uk/collections/department/sound/lecture.mp3 . - Save the file as whatever you want. In this example we'll notionally save it as Dr_Smith_Lecture.m3u
- Still in notepad, go to file > save
- When the save window pops up, set 'save as type' (second box from the bottom) to 'All Files'
- Type the name of the file, including the '.m3u' suffix
- Open notepad and simply type in the URL of your file. In this example this would be:
- Upload your m3u file onto your website by placing your m3u file in the relevant folder on your website
- Link to your m3u file
- Go to the page where you want the user to get the mp3 file
- Put in a link to your m3u file
That's it. Now, when the user clicks on the link, the mp3 file will play immediately in the user's default audio player. It will play through to the finish without being fully downloaded onto the user's hard disk.
Advice on mp3 files
Encoding
Neither iTunes nor Windows Media encodes to mp3 as standard. Both use proprietary formats. iTunes encodes to AAC and windows media encodes to WMA. You can change this in both programs.
In iTunes:
- Go to edit > preferences and a box will appear
- Click on the advanced tab and then click on the importing tab
- You will see the import using choice which defaults to 'AAC Encoder'
- Click on this to bring up the drop down menu and choose 'MP3 Encoder'.
In Windows Media Player:
- Go to tools > options and click on the Rip Music tab
- Under 'Rip settings' there is a heading, 'Format:'
- The default setting is 'Windows Media Audio'. Click here to get the drop down menu and choose mp3
You will also need to think about sampling rate and bit rate.
Sampling rate and bit rate
The bigger the bit rate and sampling rate, the larger the file and so the longer the potential download, but also the higher the quality. So there is a trade off. There are a number of options for the bit rate and sample rate of your recording and both will affect the overall quality. You may find the table below helpful in terms of how to think about the sound quality you require.
Sound quality | Sample rate | Mode | Bit rate | Reduction ratio |
Telephone sound | 2.5 kHz | Mono | 8 kbps | 96:1 |
Better than shortwave | 4.5 kHz | Mono | 16 kbps | 48:1 |
Better than AM radio | 7.5 kHz | Mono | 32 kbps | 24:1 |
Similar to FM radio | 11 kHz | Stereo | 56-64 kbps | 26-24:1 |
Near-CD | 15 kHz | Stereo | 96 kbps | 16:1 |
CD | >15 kHz | Stereo | to 128kbps | 14-12:1 |
Stereo versus mono
It is important to remember that for a stereo recording, the sample rate is split between the stereo channels - ie a stereo 44 kHz sample rate will give two channels of 22Khz whereas a mono sample rate of 44kHz gives a single channel at 44kHz. So, a quick way to double the quality of speech in the file is to encode it as mono. There is no real advantage in having stereo speech as stereo exists to replicate the natural width of the sound coming from an orchestra or band, whereas a voice is naturally from a single source.
To alter the settings of your encoding (these can't be altered once the file is encoded, it has to be re-encoded) you need to change the setting of the program you are using to do the encoding.
Altering encoding settings with iTunes
- Go to edit > preferences and to the advanced tab and then click on the importing tab
- You will see it says 'setting' and the default value is 'High Quality (160 kbps)'
- If you click here to bring up the drop down menu, you have a 'custom ' option. Click on this
- Another box appears titled MP3 Encoder. It allows you to specify the 'Stereo bit rate' and sample rate
- Use the table above to choose the rate at which you are going to encode or re-encode your file
Altering encoding settings with Windows Media Player
- Go to tools > options and click on the Rip Music tab
- You can change the settings under 'Rip settings'. There is no option to change the sample rate, but you can change the bit rate with the slider at the bottom of the box titled 'Audio Quality'
^ Back to top
0 thoughts to “Download audio files from a website”