I happen to be in the situation where I build VCVRack patches on Linux without access to a wave editor.
But I do have the swiss army knife of command line audio tools: ffmpeg
Two recipes:
-
ffmpeg -i inputaudio-file -af silenceremove=1:0:-50dB outputaudio-file where inputaudio-file and outputaudio-file are replaced with your actual audio filenames.
-
ffmpeg -i inputaudio-file -b:a 320k outputname.mp3 Generates a 320K MP3 file from your input.
Well a 3rd recipe – you can trim silence and output an MP3 file in one step:
- ffmpeg -i inputaudio-file -af silenceremove=1:0:-50dB -b:a 320k outputaudio.mp3