| Python Library Reference |
Availability:SunOS.
This module allows you to access the Sun audio interface. The Sunaudio hardware is capable of recording and playing back audio datain u-LAW format with a sample rate of 8K per second. Afull description can be found in theaudio(7I) manual page.
The moduleSUNAUDIODEV defines constants which may be used with this module.
This module defines the following variables and functions:
'r' for record-only access,'w' for play-onlyaccess,'rw' for both and'control' for access to thecontrol device. Since only one process is allowed to have the recorderor player open at the same time it is a good idea to open the deviceonly for the activity needed. Seeaudio(7I) for details.As per the manpage, this module first looks in the environmentvariableAUDIODEV for the base audio device filename. If notfound, it falls back to/dev/audio. The control device iscalculated by appending ``ctl'' to the base audio device.
| Python Library Reference |