I am a modest VB programmer and have been able to write some scripts that run successfully. With that said I am having difficulty figuring something out.
Every Sunday between 3AM and 9:30AM I need to have my HSTouch devices (Android) speak reminders at 21 distinct times with 21 different messages. I have created 21 events that trigger another event that plays an hs.speak function script but I am trying to avoid writing 21 different events and scripts for the individual spoken messages.
I was hoping that in each of my trigger events I could load the text to be spoken into a variable, pass that variable to a single hs.speak script that would extract the variable and speak the text. In this way I would have 21 event triggers and a single hs.speak script.
Creating and passing the variable is confounding me. Also, is it possible to reference a variable with hs.speak i.e., hs.speak (variable) instead of hs.speak "This is the actual text". I am able to reference a wav file with hs.speak but then I'll have to create 21 different wav files.
Thanks in advance for any suggestions you may offer.
Jim
Every Sunday between 3AM and 9:30AM I need to have my HSTouch devices (Android) speak reminders at 21 distinct times with 21 different messages. I have created 21 events that trigger another event that plays an hs.speak function script but I am trying to avoid writing 21 different events and scripts for the individual spoken messages.
I was hoping that in each of my trigger events I could load the text to be spoken into a variable, pass that variable to a single hs.speak script that would extract the variable and speak the text. In this way I would have 21 event triggers and a single hs.speak script.
Creating and passing the variable is confounding me. Also, is it possible to reference a variable with hs.speak i.e., hs.speak (variable) instead of hs.speak "This is the actual text". I am able to reference a wav file with hs.speak but then I'll have to create 21 different wav files.
Thanks in advance for any suggestions you may offer.
Jim
Comment