Auto Start Recording from command line

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
gellenb
Posts: 1
Joined: Tue Sep 20, 2011 5:03 pm
Operating System: Please select

Auto Start Recording from command line

Post by gellenb » Tue Sep 20, 2011 5:11 pm

Is there any way to start Audacity from the command line and have it start a recording session?
Something line "c:program filesaudacityaudacity.exe /record"
This way I can kick off a session for recording without having to worry about having someone go to the computer and click on the recording button to get it started. This way the recording would always be started, as long as the computer is on.

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Auto Start Recording from command line

Post by kozikowski » Tue Sep 20, 2011 5:20 pm

Audacity 1.3 has a timer function that allows unattended recording for one show. Audacity isn't big on command line controls.

Koz

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

Re: Auto Start Recording from command line

Post by steve » Tue Sep 20, 2011 5:44 pm

For command line recording (also playing, editing and other audio manipulations from the command line), see Sox.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Auto Start Recording from command line

Post by Edgar » Tue Sep 20, 2011 6:10 pm

Adding code to start recording via CLI would be very simple but would probably need to also include a switch for length-of-time-to-record (with a useful default). You would probably also want to automatically Export the recording either as an audio (WAV, M4A etc.) and/or Project so that would be two additional optional switches for audio (fully qualified "location/name" and format) plus one for Project (fully qualified "location/name").

Locked