[Tutor] Beep sound

xDog Walker thudfoo at gmail.com
Sun Mar 24 19:30:35 CET 2013


On Friday 2013 March 22 18:48, Phil wrote:
> Just out of curiosity how can a beep sound be generated?
>
> My interest in this came about because echo -e '\a' no longer works.
> Also print '\a' doesn't work, presumably for the same reason. The
> following is also mute:
>
> import Tkinter
> Tkinter.Tk().bell()
>
> Print '\a', under Idle, causes a bell icon to be displayed so it seems
> that the lack of a beep is due to a system setting.
>
> A Google search has shown several methods to play .wav files, some
> easier than others. Perhaps Pulse Audio has made '\a' redundant?

Maybe something here:

http://code.activestate.com/search/recipes/#q=beep

-- 
Yonder nor sorghum stenches shut ladle gulls stopper torque wet 
strainers.



More information about the Tutor mailing list