Urgent help with variable jquery

Urgent help with variable jquery

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?


  1. <!DOCTYPE HTML>
  2. <html lang="es-MX">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Webkit Speech Demo - @kinduff</title>
  6. <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
  7. <script>
  8. if (document.createElement("input").webkitSpeech === undefined) {
  9. document.write("<p>Lo siento, tu navegador no soporta esta función.</p>");
  10. }
  11. function kinduff() {
  12. $("#showme").fadeIn();
  13. var value = $("#q").val();
  14. $("span.var").text('"'+value+'"');
  15. //event.target.form.submit();
  16. }
  17. </script>
  18. </head>
  19. <body>
  20. <div id="kinduff">
  21. <h1>Webkit Speech Demo</h1>
  22. <p><span>INTERACTIVE CONTACTA</span></a></p>
  23. <form>
  24. <input name="q" id="q" type="text" x-webkit-speech speech error onwebkitspeechchange="kinduff();"/>
  25. </form>
  26. <div id="showme">
  27. <p>La variable es <span class="var"></span>.</p><br /></p>

  28. </div>