I have a test.wav
file.
I need to use this file to process an application, with following properties:
- monochannel
- 16 kHz sample rate
- 16-bit
Now, I'm using the following commands to attain these properties:
sox disturbence.wav -r 16000 disturbence_16000.wav
sox disturbence_16000.wav -c 1 disturbence_1600_mono.wav
sox disturbence_1600_mono.wav -s -b 16 disturbence_1600_mono_16bit.wav
Here to get a single file, three steps are involved and two temporary files are created. It is a time-consuming process.
I thought of writing a script to do these process but I'm keeping this is a last option.
In single command, can I convert a .wav
file to the required format?
-s
-option do?