Latest recipes tagged "multimedia"http://code.activestate.com/recipes/tags/multimedia/new/2016-12-30T19:06:32-08:00ActiveState Code RecipesA command-line musical alarm clock (Python) 2016-12-30T19:06:32-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/580739-a-command-line-musical-alarm-clock/ <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> Embedding media content in an HTML page with PyEmbed and Python (Python) 2014-02-15T21:21:30-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/578833-embedding-media-content-in-an-html-page-with-pyemb/ <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> Play wave audio (Python) 2009-08-04T05:45:46-07:00giuseppelobruttohttp://code.activestate.com/recipes/users/4171336/http://code.activestate.com/recipes/576866-play-wave-audio/ <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> Play sound files with pygame in a cross-platform manner (Python) 2007-06-21T14:16:58-07:00Chris Arndthttp://code.activestate.com/recipes/users/1499228/http://code.activestate.com/recipes/521884-play-sound-files-with-pygame-in-a-cross-platform-m/ <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>