Para ello he intentado implementar este código, pero hasta ahora lo más cerca que he llegado es a reconocer tan solo la letra "a".
Código Javascript :
var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList; var grammar = "JSGF V1.0; grammar actions; public <action> = ah | a | jaaaa | aaa"; var speechRecognitionList = new SpeechGrammarList(); speechRecognitionList.addFromString(grammar, 1); var recognition = new SpeechRecognition(); recognition.grammars = speechRecognitionList; recognition.lang = "es-ES"; recognition.interimResults = false; recognition.maxAlternatives = 1; recognition.onresult = function(event) { //----------------WRITE RESULT var result = event.results[0][0].transcript; console.log(result); } recognition.onend = function() { recognition.start(); } recognition.start();