Using Audio in Moodle

It is recommended that audio is embedded into an external HTML page. It might be created with FrontPage, Hot potatoes or whatever (though NOT Course Genie which has it's own way of embedding media).

File in Moodle

ChineseLevel5Unit2Economy1.mp3

Download the mp3 file and play with an mp3 player.

File on CLT Media server

Download the mp3 file and play with an mp3 player.


Notes

  1. For anything less than 10mins the mp3 can go in Moodle
  2. The flash player is located in site files so it isn't needed in each course
  3. Download mp3 option is to overcome any browser / plugin problems some users may have but both embedded players seem to work in IE / Firefox (Though not 100% confident re Firefox!). The embedded players don't work the other way round - the flash one ONLY works with files in Moodle the embedded WMP only with url.
  4. Audio in Moodle Activities is different again. The above flash player doesn't work but if we turm on the Multimedia Plugins Filter (Admin > Modules > Filters) Moodle supplies its own (similar) player.

Code

File in Moodle

Editors paste this code into FrontPage, Hot pots etc and just change audio filename in 4 places.

<p><object data="http://moodle.lse.ac.uk/file.php/1/hbs_mp3_player.swf" width="48" height="34" style="vertical-align: bottom;" type="application/x-shockwave-flash">
<param name="type" value="application/x-shockwave-flash" />
<param name="src" value="http://moodle.lse.ac.uk/file.php/1/hbs_mp3_player.swf" />
<param name="data" value="http://moodle.lse.ac.uk/file.php/1/hbs_mp3_player.swf" />
<param name="codebase" value="http://moodle.lse.ac.uk/file.php/1/hbs_mp3_player.swf" />
<param name="FlashVars" value="TheSound=ChineseLevel5Unit2Economy1.mp3" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://moodle.lse.ac.uk/file.php/1/hbs_mp3_player.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<a href="ChineseLevel5Unit2Economy1.mp3">ChineseLevel5Unit2Economy1.mp3</a>
</object>
<p><a href="ChineseLevel5Unit2Economy1.mp3">Download the mp3 file</a> and play with an mp3 player.

File on Media server

Editors paste this code into FrontPage, Hot pots etc and just change audio url in 2 places

<p><embed width="300" height="68" src="http://cltwebs.lse.ac.uk/coursemedia/development/dv400/DV400_051114.asx" type="application/x-mplayer2" showstatusbar="1" controls="console" autostart="0" loop="false" />
<p><a href="http://cltwebs.lse.ac.uk/coursemedia/development/dv400/DV400_051114_voice.mp3">Download the mp3 file</a> and play with an mp3 player.</p>

Audio in a Moodle Quiz

Editors paste this code into a quiz question, the description-type is ideal to put the audio at the top of the page. It only works with URLs, doesn't matter if it's in Moodle on on Media server.

<p>Use the player or <a href="http://moodle.lse.ac.uk/file.php/1/audioExamples/ChineseLevel5Unit2Economy1.mp3">download the mp3 file</a>