últimamente no he podido usar la librería. validé los escenarios que están en la documentación y nada. Veo que en la página oficial, del demo ocurre igual.
Tengo el siguiente código:
`<!doctype html>
<title>Speech To Text</title>
<script src="annyang.2.6.1.min.js"></script>
Hola
<script>
if (annyang) {
// Let's define our first command. First the text we expect, and then the function it should call
var commands = {
'hola': function () {
console.log("comando activado");
}
};
// Add our commands to annyang
annyang.addCommands(commands);
// Start listening. You can call this here, or attach this call to an event, button, etc.
annyang.debug(true);
annyang.setLanguage("es-CO");
annyang.start();
}
</script>
`
últimamente no he podido usar la librería. validé los escenarios que están en la documentación y nada. Veo que en la página oficial, del demo ocurre igual.
Tengo el siguiente código:
`<!doctype html>
<title>Speech To Text</title> <script src="annyang.2.6.1.min.js"></script> Hola <script> if (annyang) { // Let's define our first command. First the text we expect, and then the function it should call var commands = { 'hola': function () { console.log("comando activado"); } }; // Add our commands to annyang annyang.addCommands(commands); // Start listening. You can call this here, or attach this call to an event, button, etc. annyang.debug(true); annyang.setLanguage("es-CO"); annyang.start(); } </script> `