Chains and resampling [SOLVED]

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Locked
westwind
Posts: 27
Joined: Tue Jun 23, 2009 7:58 pm
Operating System: Linux *buntu

Chains and resampling [SOLVED]

Post by westwind » Tue Nov 08, 2016 8:39 pm

Is it possible yet? Can I add resampling to a chain to batch convert a large batch of audio files to 22050 sample rate?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Chains and resampling

Post by steve » Tue Nov 08, 2016 9:09 pm

Not with Audacity, but there are other programs that can, such as SoX.
There's an example bash script for batch processing with SoX here that may help: http://forum.audacityteam.org/viewtopic ... 51#p214951
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

westwind
Posts: 27
Joined: Tue Jun 23, 2009 7:58 pm
Operating System: Linux *buntu

Re: Chains and resampling [SOLVED]

Post by westwind » Wed Nov 09, 2016 9:49 am

Thankyou Steve - for pointing me to sox - hadn't used it before and thanks for that sox-recursive-batch-converter script: it whizzed through 1189 mp3 files and (being slightly modified*), reduced volume and bit rate as well as the resampling. Delighted - thankyou.

* sox -S -v 0.5 "$FILE" -r 22050 -C 24.2 "$DIR/$outputfile"\
Last edited by steve on Wed Nov 09, 2016 9:52 am, edited 2 times in total.
Reason: marked SOLVED

Locked