Plot Spectrum from Command Line

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.
Post Reply
rawahava
Posts: 4
Joined: Thu Feb 28, 2013 3:08 am
Operating System: Please select

Plot Spectrum from Command Line

Post by rawahava » Thu Feb 28, 2013 3:13 am

From what I understand, command line function seems to be relatively basic. That being said, is there any way that I might be able to open the Spectrum Analyzer for a specific file from the command line?

A little background: basically what we want to do is create a simple script for other users of our system here that they can run. This script would theoretically take the input of a wav filename, and then pop up a display of the frequency analysis. The reason we want a script is our fear of users stripping wav data accidentally if they save the original file as a .aud file. The users aren't always the most tech-savvy people.

Any suggestions would be appreciated - thanks!

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

Re: Plot Spectrum from Command Line

Post by steve » Thu Feb 28, 2013 3:24 am

Short answer: No you can't open Plot Spectrum from the command line.
Longer answer: There is an experimental "Script-Pipe" module: http://manual.audacityteam.org/man/Scripting
There is also a command line audio program called SoX that may be of interest: http://sox.sourceforge.net/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rawahava
Posts: 4
Joined: Thu Feb 28, 2013 3:08 am
Operating System: Please select

Re: Plot Spectrum from Command Line

Post by rawahava » Thu Feb 28, 2013 4:44 am

Thanks Steve!

I was aware of SoX, but (being dumb) didn't get to the part that said it could also do frequency analysis plots - I'll take a look!

Post Reply