record-schedule
v0.1.9
Published
Record audio on a recurring schedule and post to a server using Sox and Lame
Downloads
5
Readme
record-schedule - Record audio on a recurring schedule and post to a server using SoX and LAME
record-schedule is a CLI to run a background service that will:
- Automatically record audio on a recurring schedule using the
sox
CLI - Convert the audio to MP3 using the
lame
CLI - Post MP3 to a remote server
Installation
- Requires Node.js to be installed. You'll typically find this available in your OS package manager.
- Requires the
sox
andlame
CLI to be installed. npm install -g record-schedule
(You may need to run this undersudo
.)
Configuration
To locate your config.js file run:
$ record-schedule config
The config variables are:
config.minutesToRecord = 10;
config.recurrance.hour = 15;
config.recurrance.minute = 30;
config.recurrance.second = 0;
config.recurrance.dayOfWeek = 5;
config.server.url = '<url>';
// Optional Parameters
config.params.foo = 'bar';
Recurrance
- Accepts the Recurrence Rule Scheduling formating from node-schedule node-schedule.
Running
- Run as a background service (creating OSX daemons requires sudo/root privileges)
$ record-schedule start
- To stop scheduled recordings
$ record-schedule stop