rec
, play
, soxi
are symbolic links to the sox
binary. (Alternatively, on platforms that don’t support symbolic links, they are all identical copies of the same binary.) SoX has a different default behaviour depending on the name by which it is called.
It seems that something is wrong with the symlinks on your device. Perhaps they are pointing to the wrong path? Try if you can fix this.
Your other option is to use the sox
binary for all tasks. rec -r 8000 -c 2 output.wav
is actually the same as sox -d -r 8000 -c 2 output.wav
(-d
is the default audio device). For playback, similarly, play somefile
is the same as sox somefile -d
.