[Tutor] Beep sound

Phil phil_lor at bigpond.com
Sat Mar 23 02:48:12 CET 2013


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?

-- 
Regards,
Phil


More information about the Tutor mailing list