Urgent help with variable jquery

0 favourites
  • 1 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello.

    We are working on a voice recognition system with Web API Speech of Chrome, and we need help.

    As you can see in the example code siguiene, speech recognition is ready.

    Now what we do is that if for example the user says the microphone the word'' Hello'' be sent to a url.

    Does anyone know about comparing variables?

    Can anyone help?

    DEMO: luxor.webcindario.com/reconocimiento.html

    HTML CODE:

    <!DOCTYPE HTML>

    <html lang="es-MX">

    <head>

         <meta charset="UTF-8">

         <title>Webkit Speech Demo - </title>

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

         

         <script>

              if (document.createElement("input").webkitSpeech === undefined) {

                  ?document.write("<p>Lo siento, tu navegador no soporta esta funci?n.</p>");

              }

              

              function kinduff() {

                  ?$("#showme").fadeIn();

                  ?var value = $("#q").val();

                  ?$("span.var").text('"'+value+'"');

                  ?//event.target.form.submit();

              }

         </script>

    </head>

    <body>

    <div id="kinduff">

    <h1>Webkit Speech Demo</h1>

    <p><span>INTERACTIVE CONTACTA</span></a></p>

    <form>

    <input name="q" id="q" type="text" x-webkit-speech speech error onwebkitspeechchange="kinduff();"/>

    </form>

    <div id="showme">

    <p>La variable es <span class="var"></span>.</p><br /></p>

    </div>

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)