Putty wrote: > Hi. I've written a small python script that was primarily meant for > use in a unix-compatible environment. It writes a bunch of raw audio > to a file and then sends the file to /dev/audio and the system plays > the audio. Very simple. > > Is there a simple way I could edit the script (which just uses the > system call to do this) to run under windows? > > This is the code that would have to change: > os.system("cat audioBuf > /dev/audio")
Not really. You'll have to convert it to .wav and then pass it to a helper app. <http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1103.mspx> -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list