Speech recognition grammar
This feature is discouraged — Advancements in speech recognition mean that speech grammars are not needed to achieve low error rates.
For more information, see: WebAudio/web-speech-api/pull/117 (GitHub)
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.
Status
Discouraged
MDN documentation
- 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
Specifications
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist