Announcement

Collapse
No announcement yet.

Sending remote speech from a variable

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sending remote speech from a variable

    I can send a static message like:

    hs.plugin("message server").messagetoclient "this is a test"

    I haven't had luck with speaking from a variable from a script, is there a different context I can use?


    Thanks!

    HomeSeer Page: http://wrb.tzo.com (Guest access closed until HS 1.7)
    Pentium 4 1.8 GHz
    512 MB RAM PC2700
    3 Fujitsu 510 Touch Pads
    Way2Call Hi-Phone USB
    ATTNV Crystal 16
    Ocelot / SECU-16 / SECU-16I
    mcs Temperature (Works great!)
    mcs Guardian Angel Version 1.2 (Works great!)
    Video / Captures with ConquerCam (Separate Computer)
    NetCallerID


    ~Bill

    #2
    William,

    Can you show me the script or send it to me by email.

    I remember have saw some type mismatch errors but I can’t reproduce it now when was trying to send not string value but just added the cstr(varaiable) and it was working.

    Thanks,
    Christian

    Comment


      #3
      sub main()
      dim to_be_spoken
      to_be_spoken = "This is a test"

      hs.plugin("message server").messagetoclient to_be_spoken

      end main

      Thanks!

      HomeSeer Page: http://wrb.tzo.com (Guest access closed until HS 1.7)
      Pentium 4 1.8 GHz
      512 MB RAM PC2700
      3 Fujitsu 510 Touch Pads
      Way2Call Hi-Phone USB
      ATTNV Crystal 16
      Ocelot / SECU-16 / SECU-16I
      mcs Temperature (Works great!)
      mcs Guardian Angel Version 1.2 (Works great!)
      Video / Captures with ConquerCam (Separate Computer)
      NetCallerID


      ~Bill

      Comment


        #4
        I don’t know if you have mistype in you message but it should be "end sub" like:
        <pre class="ip-ubbcode-code-pre">sub main()
        dim to_be_spoken
        to_be_spoken = "This is a test"

        hs.plugin("message server").messagetoclient to_be_spoken

        end sub</pre>

        if in your script you have "end sub" then try:
        <pre class="ip-ubbcode-code-pre">sub main()
        dim to_be_spoken
        to_be_spoken = "This is a test"

        hs.plugin("message server").messagetoclient cstr(to_be_spoken)

        end sub</pre>

        Thanks,
        Christian

        Comment


          #5
          That wasn't my script, that is just something I pulled from behind for an example.

          Thank you!

          HomeSeer Page: http://wrb.tzo.com (Guest access closed until HS 1.7)
          Pentium 4 1.8 GHz
          512 MB RAM PC2700
          3 Fujitsu 510 Touch Pads
          Way2Call Hi-Phone USB
          ATTNV Crystal 16
          Ocelot / SECU-16 / SECU-16I
          mcs Temperature (Works great!)
          mcs Guardian Angel Version 1.2 (Works great!)
          Video / Captures with ConquerCam (Separate Computer)
          NetCallerID


          ~Bill

          Comment


            #6
            ok, so maybe I just want it all

            Any chance you can carry this messagetoclient bit to it's logical conclusion?

            I've got quite a store of music on my homeseer server and I'd like to play it on the client. Sharing the area with MP's isn't always an option.

            Another use would be redirecting HS/HSP speach to a client. Wonder if Rich has provided a way to duel path the speach requests so that both could occur.

            Comment


              #7
              Guy,

              You can redirect the HS speech to a client by using the “HomeSeer Log Callback - Speech to Client:” Option in Message Server and In the HomeSeer Option the Text to Speech (TTS) tab enable the “Log Speech Phrases to Event Log” option

              To get the client play a file MP3 file I would need to transfer it to the client copy to a temp folder then play it.

              I working on a way to get the Server print screen to a client to see if there’s some windows that have pop up and it’s a 2 MB files if there some good transfer result from work it will the way the send the MP3 files.

              Thanks,
              Christian

              Comment

              Working...
              X