Not sure if this should be put in here.. or the script forum... Moderators.. feel free to move if it is better somewhere else.
THe playwavfile command seems to ignore the "wait until finished" flag..
For the above code
All three produce the desired audio.. <Good!!!>
But...
the first hs.speak... speaks and waits before it begins playing the wav file. <as expected>
The hs.playwavfile begins playing the appropriate wav file. <as expected>
The third hs.speak starts speaking imediately after the wav file begins playing... both coming out of speaker client at same time. <not as expected>
what am i missing?
Any help is appreciated.. thank you
THe playwavfile command seems to ignore the "wait until finished" flag..
Code:
hs.Speak("testing 1 . 2 . 3 . 4 . 5 . . . ",True, "*") hs.PlayWavFile("C:\Program Files (x86)\HomeSeer HS3\messages\" & MFileName,"*",True) hs.Speak("testing 1 . 2 . 3 . 4 . 5 . . . ",True, "*")
All three produce the desired audio.. <Good!!!>
But...
the first hs.speak... speaks and waits before it begins playing the wav file. <as expected>
The hs.playwavfile begins playing the appropriate wav file. <as expected>
The third hs.speak starts speaking imediately after the wav file begins playing... both coming out of speaker client at same time. <not as expected>
what am i missing?
Any help is appreciated.. thank you
Comment