isStereo ?
31. 3. 2022file="stereo.wav"
sox "$file" -n oops stat 2>&1 | grep "Maximum amplitude:" | tr -dc '[:digit:][.]\n\r'
0.741294
file="mono.wav"
sox "$file" -n oops stat 2>&1 | grep "Maximum amplitude:" | tr -dc '[:digit:][.]\n\r'
0.000000
SoX Oops.
If output is 0 then both channels are probably exactly the same, so track is dual-mono, if output is 1 then at some point in track there is no similarity at all, probably ‘stereo’ or two different tracks muxed. So ‘Maximum amplitude’ could be renamed to ‘Max diff between channels’ or similar.
A very simple, maybe useful oops-loop-script.
Conclusion: No, this is way to simple to answer the isStereo question.