![]() |
Sprex![]() |
||||||
|
| |||||||
|
News: Downloadable PDA Demos
Introduction |
AUDIOCAT(1) Audiocat[tm] 1.2: Man Page Version 3 AUDIOCAT(1)
NAME
audiocat - OSS playback/recording program
SYNOPSIS
audiocat [ -r N ] [ -b (1|2) ] [ -f N ] [ -t N ] [
-lsgmap1idh ] audiofile..
DESCRIPTION
audiocat plays and records audio files through the OSS
audio drivers. audiocat has been built on a couple of
Linux systems and seems to work once the drivers them
selves work. audiocat has been a useful tool in confirm
ing the functionality of audio subsystems.
Used to play back audio, audiocat ensures that the sound
card and speakers are working, connected, and set up.
Used to record audio, audiocat can ensure that the record
ing levels are set reasonably along with the machine-
dependent byte ordering of audio data, either by playing
back the recorded audio again with audiocat, or by doing a
signal levels analysis with the audiostats program.
OPTIONS
-r N Sample rate is N samples per second [default: 16000]
-b (1|2) One or two bytes (8 or 16 bits) per sample per
channel (default: 2)
-f N Seek to N samples From the beginning of file before
starting playback (default: 0)
-t N Play only up To N samples. (default: end of file)
-l Linear (PCM) sample scaling (this is the default)
-s Swap bytes (this only makes sense if -b 2 is speci
fied).
-g Use automatic gain control (via /dev/mixer), if avail
able.
-m Mu-law sample scaling (assumes -b 1)
-a Output to /dev/audio
-p Output to /dev/dsp
-1 Output to /dev/dsp1
-i Input. Record a single input file. Hit control-C to
end recording.
-d Print verbose debugging output
-h Print Help information
audiofile .. [required] This audio file (or files)
should be a raw, headerless, audio data file at the speci
fied sample rate, size, and format. If -i (input) is
specified, create the (single) named new file and record
into it. Otherwise, play back the (one or more) named
files.
EXAMPLES
To get a list of options and their explanation, use no
options or -h:
example% audiocat
To play back 16000Hz 16-bit linear PCM data from
datafile.sw through /dev/audio
example% audiocat datafile.sw
To record 8000Hz mulaw from /dev/dsp1 into datafile.ul
example% audiocat -i -r 8000 -b 1 -m datafile.ul
To play back 22050Hz 16-bit linear PCM data from file1.sw
and file2.sw through /dev/dsp1, after byte swapping.
example% audiocat -r 22050 -l -b 2 file1.sw
file2.sw
To play back just samples 1000 through 2000 in file1.sw:
example% audiocat -f 1000 -t 2000 file1.sw
SEE ALSO
audiostats(1)
BUGS
None known. Please report bugs to tv@sprex.com Your feed
back on this document is solicited.
AUTHOR
Tom Veatch, Sprex, Inc. All rights reserved. audiocat is
licensed software, to be used only under a license agree
ment with Sprex.
Product of Sprex, Inc. 30 June 2003 AUDIOCAT(1)
|
||||||
Copyright © 1996-2005
Sprex, Inc.
All rights reserved. Sprex, Speech in the Network, TallyGram and ANSR are trademarks of Sprex, Inc.
|