Sometimes a Wikipedia page contains audio files that I would like to download and save, for example, the individual pronunciations in the IPA chart for consonants. However, I wasn't able to find any explicit audio file to download. Any help?
I think the ones you want are sourced from http://www.yorku.ca/earmstro/introducing_the_ipa/ and there are .mp3 files there that are downloadable.
If you inspect the audio play button using your browser's dev tools, you can see an
img nearby in the structure, like so:
<div class="mwPlayerContainer k-player"> <div class="videoHolder"><div class="mwEmbedPlayer" id="mwe_player_0"> <img src="data:image/png,blahblah" class="playerPoster"> <!-- This is the element that changes --> </div> <div title="Play clip" class="play-btn-large"></div> </div>
When the play button is clicked, the
img is changed to an
audio element, which is then played. If you click play then double click on the
src before it goes away, you can get the audio file source, such as this one. Just replace
But an easier way in cases where it's possible is to view the original source, as pnuts suggests.
This how I did it, it's a bit complicated but it worked. Take this IPA letter as an example -
You first have to click the source button under the audio player. That in turn makes you go to this page
After that, you will click on the
Menu option on the audio player.
Then you click on the download button and select the MP3 option. That will get you to this page.
You then click on the
right icon to Download, change the ".ogg" to a ".mp3", save and it's done.