Speech recognition grammar
Discouraged
This feature is discouraged. For the rationale, see:
The SpeechRecognition.grammars
property of the Web Speech API represents a set of words or patterns of words that the recognition service should recognize, used for when the recognition service's accuracy is low. This feature has been removed due to advancements in speech recognition.
Learning resources on MDN
- SpeechGrammar
- SpeechGrammar: src property
- SpeechGrammar: weight property
- SpeechGrammarList
- SpeechGrammarList: SpeechGrammarList() constructor
- SpeechGrammarList: addFromString() method
- SpeechGrammarList: addFromURI() method
- SpeechGrammarList: item() method
- SpeechGrammarList: length property
- SpeechRecognition: grammars property
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature