Reply To: problem with wios

HARK FORUM problem with wios Reply To: problem with wios

#950

> Unfortunately, it did not give me any new information on how to overcome my problem with wios (see results of my wios_check in attachments).


@paul
: No. I saw your results and understood at least one of the causes.


You can use following channels argument with the wios command.
    -c <channels> (same as --channels <channels>)
    *) Please select one of ( 2 ) as <channels>.

This means that your device only supports 2 channels. If your device supports 1 or 2 channels, you will see the following message:


You can use following channels argument with the wios command.
    -c <channels> (same as --channels <channels>)
    *) Please select one of ( 1-2 ) as <channels>.

Also, while wios defaults to 16 kHz for the sampling rate, your device does not support 16 kHz. Your device supports only the sampling rates below. In other words, 44.1 kHz, 48 kHz, etc. should be selected.

your playback device:


You can use following sampling rate argument with the wios command.
    -f <rate> (same as --frequency <rate>)
    *) Please select one of ( 44100 48000 96000 192000 ) as <rate>.

your capture device:


You can use following sampling rate argument with the wios command.
    -f <rate> (same as --frequency <rate>)
    *) Please select one of ( 44100 48000 96000 ) as <rate>.

——
You will need to do some things:
– The tsp1.wav that you used is 1 Channel (Mono) data, but you need to make it 2 Chennels (Stereo).
e.g.) If you use a tool called sox , the following will duplicate the channel after rate conversion:
sox tsp1.wav -r 48000 tsp2.wav remix 1 1
Instead, please try using the output tsp2.wav.
– Please set the channel number explicitly as -c 2 on your device. It is not -c 1 .
– Please set the sampling rate explicitly as (e.g.) -f 48000 on your device. It is not -f 16000 (This is the wios default if not set).

——
The following commands should work on your device.
arecord -d 16 -D plughw:0,0 -f S32_LE -c 2 -r 48000 output.wav
To make it work the same way:
wios -r -x 0 -t 16 -a plughw:0,0 -e 32 -c 2 -f 48000 -o output.wav

The following commands should work on your device.
aplay -D plughw:0,0 tsp.wav
To make it work the same way:
wios -p -x 0 -d plughw:0,0 -i tsp.wav
*) tsp.wav must be 48 kHz, 32-bit (or 16-bit) 2-channel data.

The settings for syncing your recording and playback devices in this example are:
wios -s -x 0 -y plughw:0,0 -z plughw:0,0 -e 32 -c 2 -f 48000 -i tsp.wav -o output.wav
wios -s -y 0 -d plughw:0,0 -z 0 -a plughw:0,0 -e 32 -c 2 -f 48000 -i tsp.wav -o output.wav

Notes:
If you get an error message about buffers (for example, buffer overruns), you can work around by setting the buffer size larger than the initial value using the -N and -Z options.

I hope this answer will help you solve your problem.

Best regards,