I am trying to create an event which will play an mp3 file, randomly selected from 5 different files. After some trials and tribulations, I created a short script that made a copy of the selected file. (i.e. "n.mp3" is copied to "outfile.mp3" where n=1 to 5) The event should then send this copied file to a specific speaker.
I can see that the script correctly overwrites the newly selected file to outfile.mp3. But the "play audio file" command insists on sending the same file every time. I guess HS3 keeps the initially selected file in memory and, although the contents of "outfile.mp3" change, HS3 does not re-upload it.
Hope my explanation is clear.
Is my approach wrong, or can someone suggest a work-around?
I can see that the script correctly overwrites the newly selected file to outfile.mp3. But the "play audio file" command insists on sending the same file every time. I guess HS3 keeps the initially selected file in memory and, although the contents of "outfile.mp3" change, HS3 does not re-upload it.
Hope my explanation is clear.
Is my approach wrong, or can someone suggest a work-around?
Comment