Make a .WAV file come out of the left speaker in Windows

Alan Green alan.green at gmail.com
Mon Jul 11 20:54:04 EDT 2005


I am writing a Python script that uses the win32all winsound package to
play a .wav file. I the sound come out of the left hand speaker, but
not the right hand speaker.

I've look at some Python sound libraries (PySonic, Audiere, pygame), as
well as any number of command line .wav file players. For differing
reasons, none of these were suitable. Two possiblities are:

(a) Convert the mono .WAV file to a stereo .WAV file that plays out of
the left speaker only, or

(b) Use the win32 ActiveX to adjust the Windows sound output balance
all the way to the left.

Can anybody offer suggestions as to where to start with these two? Does
anybody have other solutions to suggest?

Alan.




More information about the Python-list mailing list