Announcement

Collapse
No announcement yet.

help with script

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

    help with script

    The attached script (written by Steve Rauca and mod'd by Firtha) would be neat as part of my good morning script.

    I added a system speak command near the last few lines to get it to speak the info in devices "t3" and "t4" but it isn't working quite right yet.

    The info in device "t3" gets spelled out instead of the actual words spoken.

    The info in device "t4" appears to be spoken just fine.

    Could someone with scripting knowledge put the finishing touches to this for me please?

    Thanks in advance,
    Last edited by nsisman; October 14, 2013, 01:48 PM.
    Neil
    Newmarket Ontario

    #2
    Neil,
    Which voices are you using. Many of the new voices will spell everything in caps.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      voices

      Rupp,

      You pegged it !

      Voices are the AT&T voices (Crystal16).

      If I change voice to Mary it works fine.

      If I look in the log the phrase ( data in device "t3") that is being spelled is in Caps.

      Is there some way to convert the "t3" data within the script to small letters so this will work ?

      Thanks
      Neil
      Newmarket Ontario

      Comment


        #4
        Yes. Try
        system.speak lcase(strStr)
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Try changing these two lines:

          hs.setdevicestring strHeadHCUC, strHeading
          hs.setdevicestring strTextHCUC, strText

          to

          hs.setdevicestring strHeadHCUC, lcase(strHeading)
          hs.setdevicestring strTextHCUC, lcase(strText)

          That should change both to all lower case

          <EDIT>[[edit]] Dang Rupp, you're too fast for me!

          Comment


            #6
            it works !

            Thanks guys,

            works like a charm now !
            Neil
            Newmarket Ontario

            Comment

            Working...
            X