raw audio in windows
Ben Sizer
kylotan at gmail.com
Fri Sep 1 06:13:05 EDT 2006
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
More information about the Python-list
mailing list