tones module
Utilities to generate and play tones
- tones.initialize()
- tones.terminate()
- tones.decide_beep = <extensionPoints.Decider object>
Notifies when a beep is about to be generated and played, and allows components or add-ons to decide whether the beep should actually be played. For example, when controlling a remote system, the remote system must be notified of beeps played on the local system. Also, registrars should be able to suppress playing beeps if desired. Handlers are called with the same arguments as L{beep} as keyword arguments.
- tones.beep(hz: float, length: int, left: int = 50, right: int = 50, isSpeechBeepCommand: bool = False)
Plays a tone at the given hz, length, and stereo balance. @param hz: pitch in hz of the tone @param length: length of the tone in ms @param left: volume of the left channel (0 to 100) @param right: volume of the right channel (0 to 100) @param isSpeechBeepCommand: whether this beep is created as part of a speech sequence