Can I command Audacity from shell?

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
forceoflight
Posts: 2
Joined: Sat Jan 08, 2011 4:25 pm
Operating System: Please select

Can I command Audacity from shell?

Post by forceoflight » Sat Jan 08, 2011 4:27 pm

Hello,

is it possible to use audacity from the Linux shell? I need a shell script that converts caf file to wav file. Thank you for your answer.

Regards,
FoL

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

Re: Can I command Audacity from shell?

Post by steve » Sat Jan 08, 2011 6:51 pm

Does Audacity support .CAF files?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Can I command Audacity from shell?

Post by bgravato » Sun Jan 09, 2011 3:41 am

Audacity is not really the best tool for simply converting file formats... Audacity also doesn't work from the command line. The only thing you can do with audacity from the command line is to launch it, and that it.

For what you want you should have a look at an called pacpl (it's a command line perl script for converting audio formats). pacpl can read CAF.

The syntax is very easy: pacpl --to wav file.caf

It can accept a directoy as input. Read the manpage for more details and examples. You can get pacpl from here: http://pacpl.sourceforge.net/
It's also available in many linux distros such as Debian or Ubuntu.
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

forceoflight
Posts: 2
Joined: Sat Jan 08, 2011 4:25 pm
Operating System: Please select

Re: Can I command Audacity from shell?

Post by forceoflight » Sun Jan 09, 2011 9:36 pm

Hello,

pacpl works perfectly. It took a while to get it compiled and installed to RHEL4 server. Anyway, now it is working and big thanks to you!

Regards,
FoL

Locked