2

I'm trying to set grammar for chrome webkitSpeechRecognition object.

rec.grammars.addFromUri("grammar.grxml");

did not work. the browser just ignored the grammar (no error message was shown).

i read in this post: Is Web Speech API Grammar exposed to developers? that - "Though w3c specified the grammar for web speech it is not yet implemented by the chrome".

is it true? is there any known workaround? when it should be supported? is there any other good web based engines that supports grammars?

Community
  • 1
  • 1
Ariel Berg
  • 76
  • 1
  • 4
  • Yes, it is true. There is no need to ask another question about the same issue. You can contact google for the supposed schedule, it's unlikely they will answer you. If you need grammar recognition you might want to use other toolkits like pocketsphinx.js – Nikolay Shmyrev Apr 23 '14 at 11:47
  • Possible duplicate of [Is there a way to use a grammar with the HTML 5 speech input API?](http://stackoverflow.com/questions/8683772/is-there-a-way-to-use-a-grammar-with-the-html-5-speech-input-api) – Nikolay Shmyrev Nov 25 '15 at 20:38

1 Answers1

0

I'm struggling with the same problem. And very less documentation regarding this matter.

This article posted around March 2017 also states it's not working in Chrome but Firefox.

And the answers in the following questions also confirm the same.

Web Speech API Custom Words

Grammar in Google Web Speech API

Nohim Ys
  • 51
  • 7
  • Can you please post a quick summary of the questions you posted? It could be that these might be deleted in the future, and then your answer is of no use to anyone who sees it. – techfly Mar 30 '18 at 12:21