Most viewed recipes tagged "multimedia" Code RecipesPlay sound files with pygame in a cross-platform manner (Python) 2007-06-21T14:16:58-07:00Chris Arndt <p style="color: grey"> Python recipe 521884 by <a href="/recipes/users/1499228/">Chris Arndt</a> (<a href="/recipes/tags/multimedia/">multimedia</a>, <a href="/recipes/tags/pygame/">pygame</a>, <a href="/recipes/tags/sound/">sound</a>, <a href="/recipes/tags/sysadmin/">sysadmin</a>). Revision 4. </p> <p>This simple script shows how to play back a sound file using the mixer module from the pygame library. If you have pygame installed, this will work on all major platforms. The mixer module supports WAV and OGG files with many different sample rates, bits per sample and channels. The script will play back all supported files given on the command line sequentially.</p> A command-line musical alarm clock (Python) 2016-12-30T19:06:32-08:00Vasudev Ram <p style="color: grey"> Python recipe 580739 by <a href="/recipes/users/4173351/">Vasudev Ram</a> (<a href="/recipes/tags/alarm/">alarm</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/clock/">clock</a>, <a href="/recipes/tags/multimedia/">multimedia</a>, <a href="/recipes/tags/music/">music</a>, <a href="/recipes/tags/playsound/">playsound</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/time/">time</a>, <a href="/recipes/tags/utilities/">utilities</a>, <a href="/recipes/tags/utility/">utility</a>). </p> <p>This is a simple musical alarm clock in Python. You pass a command-line argument specifying the time in minutes after which the alarm should go off. When that time arrives, it plays a musical sound.</p> Play wave audio (Python) 2009-08-04T05:45:46-07:00giuseppelobrutto <p style="color: grey"> Python recipe 576866 by <a href="/recipes/users/4171336/">giuseppelobrutto</a> (<a href="/recipes/tags/multimedia/">multimedia</a>, <a href="/recipes/tags/ossaudiodev/">ossaudiodev</a>, <a href="/recipes/tags/wave/">wave</a>). </p> <p>Play wave audio</p> Embedding media content in an HTML page with PyEmbed and Python (Python) 2014-02-15T21:21:30-08:00Vasudev Ram <p style="color: grey"> Python recipe 578833 by <a href="/recipes/users/4173351/">Vasudev Ram</a> (<a href="/recipes/tags/multimedia/">multimedia</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/video/">video</a>). </p> <p>This recipe shows how to embed multimedia content such as a YouTube video in a web page, using the PyEmbed library for Python.</p>