7.2.3 How to use

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:

7.2.3.1 Mode option

The three modes for wios  are.

Record

: 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

Play

: The option is -p or --play. You can specify the wave file name to play using -i. The default file name is ad.wav

Synchronized playing and recording

: 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.

7.2.3.2 Device options

You can specify a device using two options, -x and -d.

ALSA

: The option is -x 0. You can specify the device name using -d. The default device name is plughw:0,0.

TDBD

: The option is -x 1. You can specify the device file using -d. The default path to the device file is /dev/sinichusb0.

RASP

: 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.

7.2.3.3 General options