Urgent help with variable jquery

Chat about anything not covered in these forums, but keep it civil!

Post » Sat Mar 23, 2013 12:09 pm

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: http://luxor.webcindario.com/reconocimiento.html


HTML CODE:

<!DOCTYPE HTML>
<html lang="es-MX">
<head>
     <meta charset="UTF-8">
     <title>Webkit Speech Demo - @kinduff</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 funcin.</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>amariscal2013-03-23 12:13:15
B
8
S
2
Posts: 178
Reputation: 1,511

Return to Open Topic

Who is online

Users browsing this forum: miksa and 7 guests