The previous code was not working for me on Windows and it was documented that the -t flag needed to be changed to waveaudio and a new -d flag needed to be added to use the default recording device ( otherwise you would get an error from sox that no default recording device was detected ).
The previous code was not working for me on Windows and it was documented that the
-t
flag needed to be changed towaveaudio
and a new-d
flag needed to be added to use the default recording device ( otherwise you would get an error fromsox
that no default recording device was detected ).