This content was proof-read by Grammarly. You can Try Grammary for FREE
When implementing the speech recognition in the windows phone apps, we should use the predefined grammars to identify if the input is valid or not. There are generally 3 different types of grammars that can be used when implementing speech feature in your Windows Phone app.
Grammars available for Speech Apps in Windows Phone SDK
- Built-In grammars – There are 2 types of built in grammars available for the windows phone developers which are dependent on the Microsoft Cloud service.
- Dictation Grammar
- Web Search Grammar
With the Built-in grammars, the developers need not worry about writing the grammar to implement the speech feature. The speech that is captured via the phone is sent to the Microsoft cloud service and processed and is ideal for short phrases.
- List Grammars – With the List grammars, the developers can programmatically define the phrase via List or array of strings within the app where each string in the array represents individual phrase that the app will accept.
- XML grammars – An XML based structure to define the grammars which can be used by the apps. The format of the XML is based on the SRGS (Speech Recognition Grammar Specification). The SRGS generally includes the phrases with rules and semantics.