The HP-Apollo 9000/710 workstation has a telephone-quality audio chip and an internal speaker. Newer workstations in the 9000/700 series may also be equipped for audio; the 9000/720 and 9000/730 models aren't.
HP provides a number of programs in source form that may be used
with mhn:
The directory /usr/audio/examples/ contains these programs.
The README file in that directory documents the various audio
utility programs for recording and playing sounds.
The programs from /usr/audio/examples should be copied into a directory named in your $PATH environment variable so that the audio programs can be found if absolute paths aren't used in the invocations.
Before any of the aforementioned programs can be used, the audio device files must be created by running /usr/audio/bin/make_audio_dev, and two daemons must be started by the superuser: /usr/etc/ncs/llbd and /usr/audio/bin/Aserver. Refer to the man page Audio(5) for detailed, step by step instructions on how to do these things. Alternatively, refer to the HP publication ``Audio Users Guide'' (HP order number A1991-90609, November 1991 version).
The audio devices support several ``native'' encodings that vary as to which of the audio device files is used: one of /dev/audio[BEI][ALU], where E=external jack, I=internal speaker, B=both; A=8-bit A-law, L=16-bit linear, U=8-bit μ-law. It is possible to cat a raw audio data file of the appropriate type to or from one of these devices. For example, a raw SPARC audio file may be played by running this command:
% cat bark.raw >/dev/audioIUThere is also a raw /dev/audio device.
(You must create the audio device files before you can cat anything to them; again, refer to Audio(5) for information on how to do this.)
In HP-UX 8.07, the audio tools, rather than looking for header information in the sound data, rely on user-supplied information, such as preferences, file extensions, or command line options, to inform the tools about the types and sampling rates of the audio data. This means that both audio/basic and audio/x-next can be used, but you have to use an appropriate file extension or command line option as follows:
type | extension | option |
audio/basic | .u | -u |
audio/x-next | .au | -au |
The relevant mhn profile entries for recording and playing audio parts are these:
mhn-compose-audio/basic: recorder '%F' -u -pause mhn-compose-audio/x-next: recorder '%F' -au -pause mhn-show-audio/basic: splayer -u mhn-show-audio/x-next: splayer -au
In general, HP audio file names have the form
file name[[.sample rate].type]where
sample rate → digit+ 000 | digit+ k
type → u | al | au | wav | snd | l8 | lo8 | l16
The audio types have these meanings:
μ-law u
A-law al
Sun (self-describing format) au
Microsoft RIFF Waveform wav
Macintosh snd
Linear8 l8
Linear8Offset lo8
Linear16 l16
Examples:
As with the SPARC, the default sample rate is 8000/second.
Other useful programs supplied with HP-UX 8.07 are these: