You can run wios with no options to see the complete help.0 wios accepts three types of options: mode, device, and general, which can be freely combined. For example, if you want to record 2 seconds from an ALSA device at a sampling rate 44.1kHz and store it into voice.wav, the command is:
wios -x 0 -f 44100 -t 2 -o voice.wav
See the recipe “Recording multichannel sound” of the HARK cookbook for other examples.
The descriptions of the options for each category are:
The three modes for wios are.
: The option is -r or --rec. You can specify the wave file name to record name using -o. The default file name is da.wav
: The option is -p or --play. You can specify the wave file name to play using -i. The default file name is ad.wav
: The option is -s or --sync. You can specify the wave file name to play using -i and the file to record using -o. wios will then play the specified file and simultaneously record to another specified file.
You can specify a device using two options, -x and -d.
: The option is -x 0. You can specify the device name using -d. The default device name is plughw:0,0.
: The option is -x 1. You can specify the device file using -d. The default path to the device file is /dev/sinichusb0.
: The option is -x 2. You can specify the IP address using -d. The default IP address is 192.168.33.24.
In addition to thees options, you can specify other device dependent options such as gains; see help for wios for details.
-t: Recording/playing duration.
-e: Quantization bit rate. The default is 16 bits.
-f: Sampling frequency. The default is 16000 Hz.
-c: Number of channels. The default is 1ch.