Class a.s.PlayJob(PlayJobBase):

Part of aculab.speech View Source View In Hierarchy

Job to play a file.
Method __init__ Create a PlayJob.
Method done Generic job interface method.
Method get_data PlayJobBase interface method.

Inherited from PlayJobBase:

Method start Generic job interface method.
Method fill_play_buffer Reactor callback - fills the play buffers on the board.
Method stop Generic job interface method.
def __init__(self, channel, f, agc=0, speed=0, volume=0, filetype=None): (source)

Create a PlayJob.

Related Aculab documentation: sm_replay_start.

See SpeechChannel.play for a shorthand.
ParameterschannelThe SpeechChannel that will play the file.
f

Either a filename or a fd.

If a filename is passed in, the associated file will be opened for reading and closed upon completion. Filename extensions will be treated as a hint for the file type, but only if filetype is not None. Currently recognized filename extensions are .al, .ul and sw.

If a file descriptor is passed in, the file will be left open (and the file pointer will be left at the position where the replay stopped.
agcA nonzero value activates automatic gain control.
speedThe replay speed in percent. 0 is the same as 100: normal speed.
volumeThe volume adjustment in db.
filetypeThe file type. The default is kSMDataFormatALawPCM.
def done(self): (source)
Generic job interface method.
def get_data(self, length): (source)
PlayJobBase interface method.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.