I made this a while ago and forgot about it until now.
Let this serve as a guide for future development only. The cli for audacity is fraught with pitfalls. You have to build from src just to allow programmatic access.
Use google speech recognition to transcribe simple audio in audacity.
CGPL-3.0