Yes, this problem has been around for awhile but there are still corner cases. SoX 14.2.2 in Windows 10 has no problem with a simple command like play test.wav -t waveaudio but when I put play with a script it balks and throws the error. Here's a script I have used for testing:
cat recorded.wav| tee >(play -t raw -r 20250 -V0 -b 16 -c 2 -L -e signed-integer - rate 48000 ) | sox -t raw -r 20250 -V0 -b 16 -c 2 -L -e signed-integer - out.wav
cat recorded.wav is just for testing, replacing the executable that is in a bigger script. That works just fine in Linux but not in windows. I am trying to invoke it from "git bash" as that is otherwise friendly to all my other work.
Do you mean that
doesn't work in scripts but does at the DOS prompt?
As a workaround you can
beforehand. To make it persistent via the GUI, it should be:
https://codeberg.org/sox_ng/sox_ng/issues/396