Menu ▾ ▴

#365 sox: Soory, there is no default audio device configured

open
nobody
None
5
2025-02-07
2022-12-23
Jim Lill
No

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.

Discussion

  • Martin Guy

    Martin Guy - 2025-02-07

    Do you mean that

    play -t waveaudio
    

    doesn't work in scripts but does at the DOS prompt?

    As a workaround you can

    set AUDIODRIVER=waveaudio
    

    beforehand. To make it persistent via the GUI, it should be:

    Control Panel : System : Advanced : Environment Variables
    

    https://codeberg.org/sox_ng/sox_ng/issues/396

     

Log in to post a comment.