Class a.s.ToneJob(object):

Part of aculab.speech View Source View In Hierarchy

Job to play a predefined Tone.
Method __init__ Prepare to play a list of tones.
Method start Generic job interface method.
Method on_write Reactor callback.
Method stop Generic job interface.
def __init__(self, channel, tone, duration=0.0): (source)

Prepare to play a list of tones.

Related Aculab documentation sm_play_tone.

See SpeechChannel.tones for a shorthand.
ParameterstoneA predefined tone id. See the list of pre-loaded output tones for valid tone ids. Duration is in seconds, not milliseconds. 0.0 is infinite.
durationthe duration in seconds (float).
def start(self): (source)

Generic job interface method.

Applications should call SpeechChannel.tones or SpeechChannel.start.
def on_write(self): (source)
Reactor callback.
def stop(self): (source)
Generic job interface.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.