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
and lame
CLI to be installed. npm install -g record-schedule
(You may need to run this under sudo
.)
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>';
config.params.foo = 'bar';
Recurrance
Running
$ record-schedule start
- To stop scheduled recordings
$ record-schedule stop