I’ve been reading various posts etc. regarding controlling Audacity and really nobody has asked for a simple and direct solution that would allow other programs to control Audacity.
What I’m proposing is quite simple. (we can refine with discussion)
Add following options to Audacity :
o Option to define a directory and control file name, e.g. c:\audacity\audacity.ctrl
o Option to enable / disable control file monitoring and execution events
o Option to set a polling interval to the control file
I think you can guess where this is going
Audacity will only ever access the control file in read only mode (this will help reduce/stop privilege access issues)
Another program can now create and write to the control file.
The control file is basic and simple and really just a control button file. The user will have to manual setup Audacity to their input source, file formats, sampling rates, etc etc.
Control file would basically have: (or similar to be discussed)
ADC_FILE=file name specification
Such a simple control interface would allow any external program give basic and simple commands to Audacity.
To scope this I would like to mention, for example, my Scan125 Control Program
If you look at one of the main screen display shots then there is a recording group at the bottom with simple buttons. User can option set in the program what the file name will be. Also some record setting for Pause (pauses when squelch is closed), Split (changes file name on different frequency) and Record (automatically start/stop recording on signal reception). This is WAV only.
Scan125 could easily write to the Audacity Control File as could any other program.
I appreciate that this solution is “crude” but often people only want a crude and simple solution. I want Audacity to do what is does best and other programs to do what they do best.
In my case I write programs to control communications receivers. So for example on a yacht as sea, or just a SW listener will want to record a scheduled broadcast (be they asleep or awake). They now have the flexibility of Audacity to set the quality and recording format of their choice and other programs, scripts (python, perl, rexx, java, macros, etc. to just trigger BASIC/minimal Audacity functions.