Announcement

Collapse
No announcement yet.

Web Page - Text Input to Speech

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

    Web Page - Text Input to Speech

    I am not much of a programmer and was hoping for some help. I would like to have homeseer display a web page that allows for the user to input text and that text would then be output as speech thru speaker client.

    Thanks

    #2
    Here you go. Name the page speech.asp and cut and paste this into the page.
    PHP Code:
    <%@ Language=VBScript %>
    <
    HTML>
    <
    HEAD>
    <%
    hs.speak(Request.Form("speech"))

    %>
    </
    HEAD>
    <
    BODY>
    <
    form name=firstform" action="speech.asp" method="post">
    <input type="
    text" name="speech">
    <input type="
    submit">
    </form>
    </BODY>
    </HTML> 
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Probably basically the same here:

      PHP Code:
      <%@ Language=VBScript %>
      <
      HTML>
      <
      HEAD>
      <%
      if 
      speech <> "" then
      hs
      .speak(Request.Form("speech"))
      end if
      %>
      </
      HEAD>
      <
      BODY>
      <
      form name="form1" action="speak.asp" method="post">
      <
      p>
      <
      input type="text" name="speech" size="31">
      <
      input type="submit">
      </
      p>
      </
      form>

      </
      BODY>
      </
      HTML


      ~Bill

      Comment


        #4
        Thanks guys, works great especailly from cell phone browser.

        I can now send spoken messages thru the house remotely when no one answers the phone (voice or cell).

        Comment


          #5
          I know I am pushing it but is there a way to specify from the webpage a speaker client to send the speach output to or even specify output to speak thru HSP - Way2Call?

          Comment


            #6
            Hey Rupp - I wasn't ignoring your post but some of the stuff between the PHP tags on your post actually came out as the HTML objects on my board web page so I wasn't sure if he was going to be able to copy and paste it.


            ~Bill

            Comment


              #7
              I don't know about plumbing speech through the phone but you can specify speaker clients.

              Parameters

              Parameter: text
              Type: string
              Description: This is the string you want to speak. It may also be the complete path to a WAV file to be played.

              Parameter: wait (boolean)
              Type: boolean
              Description: If set to TRUE, the function will not return until the system finishes speaking. This is useful if you are switching between speaking and listening. You cannot listen and speak at the same time on some systems. If this parameter is missing, the system will not wait.

              Parameter: host (optional)
              Type: string
              Description: Leaving this a null string will apply the command to the first instance HomeSeer finds, otherwise use the hostname of the computer for this command. If more than one instance of the Speaker application is running on "host" then you may need to specify the instance as well in the format host:instance.

              Returns

              None.
              Example

              Sub Main()
              ' speak and wait
              hs.speak "hello there", True
              hs.speak "Hello people in the kitchen.", True, "Kitchen:*"

              End Sub





              ~Bill

              Comment


                #8
                Speech.asp

                Yeah, this is a really old thread, but is there anyway to do this in HS3? I haven't used it (or tried to fix it) in many years, but was hoping it would not be hard to make it work. Turned out too hard for me.

                Anyone using something like this in HS3??

                Rob
                .

                Comment


                  #9
                  Nobody?
                  .

                  Comment


                    #10
                    Hi Rob:

                    I just tried Rupp's example, and works for me.
                    Don

                    Comment

                    Working...
                    X