Page 1 of 1

Repeating same steps on a large number of files

Posted: Thu Mar 03, 2011 10:44 pm
by DickN
I have a set of over a thousand short MP3's that I want to put on an MP3 player. Problem is their sample rate is 11k, and the MP3 player doesn't play anything under 22k. No problem with bit rate, it's the sample rate. I've found MP3 resampling programs, but either they're not free (I only need to do this once) or I need to get the compiler and the source and build the program. It would be much simpler (via script, batch file, etc.), albeit maybe longer runtime, to automate the conversion of all these files using Audacity. I'm an old DOS jockey, so if there's a way to run Audacity repeatedly via a .bat file, that would be great. Can Audacity be command-line driven? I don't want to save the projects, just import and export MP3's. I have MP3Tag to take care of the tag info. Thanks!

Re: Repeating same steps on a large number of files

Posted: Fri Mar 04, 2011 12:30 am
by bgravato
DickN wrote: Can Audacity be command-line driven?
No, it can't.

You could try using sox. I can't help you with batch scripting in DOS, but have a look at this thread:
http://forum.audacityteam.org/viewtopic ... 28&t=53637

Re: Repeating same steps on a large number of files

Posted: Fri Mar 04, 2011 2:00 am
by DickN
bgravato wrote:You could try using sox.
Is there a download site for sox binary for Windows? So far I've only found source files available for download, and gcc also needs to be compiled with something before I can use it to compile sox. Snowball effect :roll:

Re: Repeating same steps on a large number of files

Posted: Fri Mar 04, 2011 3:56 am
by steve
DickN wrote:Is there a download site for sox binary for Windows? S
http://sourceforge.net/projects/sox/files/sox/14.3.1/

Re: Repeating same steps on a large number of files

Posted: Fri Mar 04, 2011 4:49 am
by DickN
How'd I miss that one? Thanks!

Re: Repeating same steps on a large number of files

Posted: Sat Mar 05, 2011 5:39 pm
by Edgar
bgravato wrote:
DickN wrote: Can Audacity be command-line driven?
No, it can't.
Not quite exactly true. Audacity does accept a small handful of relatively useless command line switches and is happy to run from a .bat file. The real problem is that almost everything you might want to do with Audacity requires user input and a live user to dismiss any dialogs that pop up. All this can be overcome but requires a re-compile.