On Wed, Sep 2, 2015 at 11:14 PM, Chuck Doolittle <n1s...@gmail.com> wrote:
> I need to play a file that doesn't get pre-loaded.
>
> I have a (bash) script that determines what audio files to put together
> based on the time of day.
>
> I have that file listed as a single source in the liquidsoap script:
> time_files = audio_to_stereo(single("/tmp/current_time.mp3"))
>
> And then:
> def new_time(m) =
> ignore(test_process("/home/stream/configs/time_mkfile.sh"))
> end
>
> current_time = on_track(new_time,time_files)
>
> I then use that to create a new source that is delayed:
> timed_currenttime = delay(360., current_time)
>
>
> This is so the time is announced no more frequently than every 6 minutes.
> I have tried using request.dynamic as well, but it too caches the file
> again as soon as it finishes. Since I can't be sure of the minute the next
> iteration plays, I can't recreate the file until I am at the beginning of
> the track.
>
> The problem is that is pre-caches some of the audio in the file as the
> last play is ending, so what comes out of the source at the beginning of
> the next play is an undefined mix of the old file, and the new one.
>
> I have a feeling I'm missing an obvious solution. I just want to be able
> to determine a file (or playlist that behave like playlist.merge) as it's
> called, not at the end of the last call.
>
What we are doing in different software is pre-recording a temperature
announcement for each expected temperature and then when we go to announce
the temp, we have a script that puts the correct temp cut in place.
Could you pre-record a time announcement for each minute oft the day and
then work it from there?
>
> Thanks,
> Chuck, N1SPX
> IT Director, http://am1700.org/
>
> all the best,
drew
--
http://nakedghosts.blogspot.com/
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users