This is a very useful feature, especially for blind people. Unfortunately
there is no unique way of issuing some beep sound on Linux-based systems, so
there needs to be some magic that determines whether running under X11 or not
and call the appropriate code for beeping.