Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I programmatically process audio files in a folder system? [closed]

Tags:

audio

audacity

I have a few hundred audio files of spoken lectures. I need a piece of software I can call from the command line to process the audio in various ways e.g. changing format, normalising, etc.

So far I have tried to batch process files using Audacity using a chain as detailed in this video. However, this is not satisfactory as I can't call this from command line (and therefore batch process files in a flexible way adapting to size/filetype etc.).

Are you able to point towards any software that can do this kind of audio processing from the command line?

like image 231
James Owers Avatar asked Oct 18 '25 11:10

James Owers


1 Answers

Depending on your requirements, you don't always have the use Audacity.

You can use SOX in order to achieve what you are trying to do in terms of getting the file information of an audio file, as well as carry out compression.

 sox long.mp3 short.mp3 trim 10

For comparison etc..

To expand, you can use a bash script, to iterate through each of the files in a directory and then run the command on each of the files.

like image 96
Phorce Avatar answered Oct 21 '25 12:10

Phorce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!