Announcement

Collapse
No announcement yet.

Chain hs.speak commands?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Chain hs.speak commands?

    Is it possible to chain commands with the same tags, or does all text need to be in one command?

    eg.

    hs.Speak("{speaker=Office,volume=30})
    hs.Speak("Good Morning...", True)
    hs.Speak("It is " & strHr & " " & strMin, True)
    hs.Speak(" , on " & strDay, True)
    hs.Speak(strTDate, True)

    If it's possible to chain like this, is there a command to signal BLSpeech that it's done and to return the speaker zone to its original state?
    Last edited by Uncle Michael; February 9, 2016, 05:54 PM.
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548, NUC i3

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

    #2
    It has to be in a single command
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Thank you. That's what I suspected.
      I'll just consolidate the text into a single string variable.
      Mike____________________________________________________________ __________________
      HS3 Pro Edition 3.0.0.548, NUC i3

      HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

      Comment


        #4
        One more question. Does BLSpeech accept embedded SAPI control tags? So, for example, would this line contain a one second pause?

        hs.Speak("{speaker=Office,volume=30} "Good morning <silence msec="1000"/> It is Monday, June 1, 2016")
        Mike____________________________________________________________ __________________
        HS3 Pro Edition 3.0.0.548, NUC i3

        HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

        Comment


          #5
          Yes that should work fine
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment


            #6
            Originally posted by Uncle Michael View Post
            One more question. Does BLSpeech accept embedded SAPI control tags? So, for example, would this line contain a one second pause?

            hs.Speak("{speaker=Office,volume=30} "Good morning <silence msec="1000"/> It is Monday, June 1, 2016")

            Yes the SAPI tags work. I use them from time to time.
            Originally posted by rprade
            There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

            Comment

            Working...
            X