Moxa UC-8481-T-LX [52/90] Playing a wave file

Moxa UC-8416-T-LX [52/90] Playing a wave file
UC-8410/8416/8418/8430 Managing Communication
4-25
Playing a WAVE File
vplay:
vplay can be used for playing a wave file. It supports playing mono or stereo wave files at a 11025, 22050, or
44100 HZ sampling rate, with 8 or 16 bits.
Device File on Linux: /dev/dsp
vplay [-qvwrS] [-s speed] [-t seconds] -b bits [filename1 ...]
-S Stereo (default is mono).
-s speed Sets the speed (default is 11025 kHz). If the speed is less than 300, it will be multiplied by
1000.
-t seconds Sets the recording (or playback) time in seconds (default is no time limit)
-b bits Sets the sample size (bits/sample). Possible values are 8 and 16 (default 8).
-w record a MICROSOFT WAVE file
-r records raw data without header
-q quiet mode
Example: Use the following commands to play a WAVE file.
root@Moxa:/root# vplay /tmp/test.wav
Playing WAVE : 16 bit, Speed 44100 Hz 16 bits Stereo ...
root@Moxa:/root#
Recording a WAVE file
vrec:
vrec can be used to record a wave file. It supports playing mono wave files at a 11025, 22050, or 44100 HZ
sampling rate, and with 8 or 16 bits.
Device File on Linux: /dev/dsp
vplay [-qvwrS] [-s speed] [-t seconds] -b bits [filename1 ...]
-S Stereo (default is mono).
-s speed Sets the speed (default is 11025 kHz). If the speed is less than 300, it will be multiplied by
1000.
-t seconds Sets the recording (or playback) time in seconds (default is no time limit)
-b bits Sets sample size (bits/sample). Possible values are 8 and 16 (default is 8).
-w record a MICROSOFT WAVE file
-r records raw data without a header
-q quiet mode
Example: Use the following commands to record a mono format WAVE file at a 22050 HZ sampling rate, with
16 bits, in 10 seconds.
root@Moxa:/root# vrec -t 10 -w -s 22050 -b 16 /dev/shm/22050_16_Mono.wav
Recording WAVE : 16 bit, Speed 22050 Hz 16 bits Mono ...
root@Moxa:/root#
NOTE The vrec does not support record the stereo format music.

Содержание

Похожие устройства

Скачать