Martin Guy - 2025-02-07

There is the sox --temp directory option described in the manual.
If you are on Windows you can also set TEMP or TMP but on Unix this isn't respected.

For a persistent solution, you can add

SOX_OPTS="--temp ."
export SOX_OPTS

to your ~/.profile (or ~/.bashrc or ~/.bash_profile if you use bash - it's a bit confused about what its startup files are; adding

test -f ~/.profile && source ~/.profile

at the start of ~/.bashrc and not having ~/.bash_profile seems the best workaround)