Part of aculab.speech View Source View In Hierarchy
| 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. |
Create a PlayJob.
Related Aculab documentation: sm_replay_start.
SeeSpeechChannel.play
for a shorthand.
| Parameters | channel | The 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 | |
| agc | A nonzero value activates automatic gain control. | |
| speed | The replay speed in percent. 0 is the same as 100: normal speed. | |
| volume | The volume adjustment in db. | |
| filetype | The file type. The default is kSMDataFormatALawPCM.
|