I’m wondering if there is any way to add a custom file format export option through scripting or another similar mechanism. The format is basically just a stereo 16-bit 44.1kHz PCM stream with a custom header. I currently have a command-line utility that can convert .wav to the right format, but it would be really nice to be able to export them directly.
You could try the “external encoder” option: http://manual.audacityteam.org/o/man/exporting_to_an_external_program.html
That works, but it doesn’t give any options for filling in the fields in the header. I was hoping for some kind of scriptable option that would allow me to spawn a dialog. I suppose I could code a GUI frontend for the conversion utility and use that with the external encoder option, but that seems like overkill.
Can you pass those as command line arguments?
Yes, and I can enter the entire command-line in the external encoder dialog, but that makes for a long and complicated command line and I have to remember all of the various flags.
Perhaps you could write a little stand-alone script to generate the long complicated command line text, then just copy/paste it into the external encoder dialog.
At that point, it’s just easier to use the converter entirely outside of Audacity after exporting as .wav.