Running a script when recording starts and stops

Questions, discussion and recipes for scripting and batch processing in Audacity.
See also the "Scripting" section of the Audacity manual.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
tbodt
Posts: 1
Joined: Sat Apr 24, 2021 5:51 pm
Operating System: macOS 10.15 Catalina or later

Running a script when recording starts and stops

Post by tbodt » Sat Apr 24, 2021 5:53 pm

I'd like to run a shell command before recording starts and after recording stops. Is there a way to do this?

In my case, the script would turn off the computer fan before recording and turn it back on after recording, to minimize background noise.

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

Re: Running a script when recording starts and stops

Post by steve » Sat Apr 24, 2021 5:57 pm

If macOS shell supports "named pipes" then you could start recording from shell and then send any other commands from shell. See: https://manual.audacityteam.org/man/scripting.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply