Part of aculab.speech View Source View In Hierarchy
| Method | __init__ | Create a RecordJob. |
| Method | start | Generic job interface method |
| Method | done | Generic job interface method. |
| Method | on_read | Reactor callback. |
| Method | stop | Generic job interface method. |
Create a RecordJob.
Related Aculab documentation: sm_record_start.
SeeSpeechChannel.record
for a shorthand.
| Parameters | channel | The SpeechChannel that will do the recording. |
| f | Either a filename or a fd for the file to record. If a string is passed in, the associated file will be opened for writing and closed upon completion. Filename extensions will be treated as a hint for the file type, but only if filetype is notNone. Currently
recognized filename extensions are .al, .ul and
.sw. If a fd is passed in, the file will be left open and not
be reset to the beginning.
| |
| max_octets | Maximum length of the recording (in bytes) | |
| max_elapsed_time | Maximum length of the recording in seconds. | |
| max_silence | Maximum length of silence in seconds, before the recording is terminated. | |
| elimination | Activates silence elimination if not zero. | |
| agc | Nonzero values activate Automatic Gain Control | |
| volume | The volume adjustment in db. | |
| filetype | The file type. If no type can be deduced from the filename,
kSMDataFormatALawPCM will be used.
|
Generic job interface method
Start the recording.
Applications should useSpeechChannel.record
or SpeechChannel.start.
Generic job interface method.
Stop the recording.
Applications should useSpeechChannel.stop
to stop a pending job.