pcmplay - utility to play raw PCM data
pcmplay [options] [file1.pcm file2.pcm...]
pcmplay is a simple filter for sending raw PCM data to the cross-platform ao audio library. It will read from files specified on the command line, or standard input if no files are specified.
To obtain PCM data, check if your audio programs have an option to redirect output to a file. With mpg123 this is the -s option. Included with the Ogg Vorbis library is a sample decoder that generates PCM output. Many mixers and audio programs come with PCM samples.
Print a brief usage message.
Display version info.
Add a device to play to. The device may be any of oss, esd, alsa, irix or solaris as the output device, or wav to write to a wav file. You may specify additional options to a device by appending a colon and comma-separated list of key=value pairs. Examples:
pcmplay file.pcm -d wav:file=output.wav pcmplay file.pcm -d esd -d alsa:card=0,dev=1
Set the number of bits per sample (8 or 16, default 16).
Set the number of samples per second (default 44100).
Set the number of channels (1 = mono, 2 = stereo).
Set buffer size (default 4096).
Alex Shinn, foof@debian.org
Ao(3pm), perl(1).
To install Ao, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ao
CPAN shell
perl -MCPAN -e shell install Ao
For more information on module installation, please visit the detailed CPAN module installation guide.