Popular recipes tagged "maccbook_pro"http://code.activestate.com/recipes/tags/maccbook_pro/popular/2014-11-08T19:10:58-08:00ActiveState Code RecipesNot Quite So Simple QuickTime Player, Python Audio Capture. (Python) 2014-11-08T19:10:58-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578960-not-quite-so-simple-quicktime-player-python-audio-/ <p style="color: grey"> Python recipe 578960 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/audio_capture/">audio_capture</a>, <a href="/recipes/tags/capture/">capture</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/maccbook_pro/">maccbook_pro</a>, <a href="/recipes/tags/sample/">sample</a>, <a href="/recipes/tags/signal_capture/">signal_capture</a>). </p> <p>Not Quite So Simple QuickTime Player, Python Audio Capture.</p> <p>This DEMO code captures a function to generate a user 5 second Audio sample in Apple *.aifc format. It is then converted to DC quailty *.WAV format.</p> <p>It uses default shell system files to do the task.</p> <p>An AppleScript is created to do the sample but due to the limitations of QT Player there is a 1.5 second delay to allow QuickTine Player to start up. It is not entirely quiet but unobtrusive enough as to be like quiet mode...</p> <p>This is again a means a signal capture for an AudioScope without the need for special tools or installs.</p> <p>Read the code for more information.</p> <p>IMPORTANT!!! This DEMO WILL delete all *.aifc files inside the default $HOME/Movies directory, so be aware.</p> <p>A simple ALSA one is on its way too...</p> <p>It actually works on Python 3.4.1 but I have no idea if it works below Python 2.5.6...</p> <p>Bazza...</p>