Send audio split events to the AudioServer based on schedule
Instead of using the automatic split feature, the AudioServer can be sent a split command exactly on the correct times.
How?
-
Get the show schedule from the Creek API: station-domain.org/api/schedule
-
Queue up some node-cron events with the date() object so that they run once. Parse the dates from the schedule with moment.js
-
Send a split request to the AudioServer:
PATCH /instances/station-1/outputs/recorder-1
{
split: true
}
Why? Avoids the blip at join-marks
This is worth building despite the join/split functions because it will allow us to immediately create "pristine" audio files.
They will not have the same small "blip" sound or gap that can occur and the split/join points of MP3 files.
Edited by Travis