Dynamic Grammars.
Nuance defines dynamic grammar as, “a grammar that can be dynamically created and modified while an application is running. The Nuance dynamic grammar mechanism lets
you create and update grammars at runtime and use them for recognition immediately, without needing to recompile the recognition package and start a new recserver process”.
You can read more about grammars in general and dynamic grammar in particular from Grammar Developer’s Guide.
One of the ways of implementing dynamic grammars is by using asp.net web application with c# as code behind.
Creating dynamic grammar in 6 easy steps using asp.net/c#.net web application.
1. Create asp.net web form and delete IDE generated html code
2. Using C#.net code behind file, query DB to get data needed to build grammar.
3. Get user customized data based on a user’s unique identification key.
4. Build grammar as a string using queried data with utterance and interpretation slots.
5. Do a “Response.write” of the string with content type as ‘application/x-nuance-gsl’
6. call this asp.net page in VXML with grammar type txt/gsl.
you create and update grammars at runtime and use them for recognition immediately, without needing to recompile the recognition package and start a new recserver process”.
You can read more about grammars in general and dynamic grammar in particular from Grammar Developer’s Guide.
One of the ways of implementing dynamic grammars is by using asp.net web application with c# as code behind.
Creating dynamic grammar in 6 easy steps using asp.net/c#.net web application.
1. Create asp.net web form and delete IDE generated html code
2. Using C#.net code behind file, query DB to get data needed to build grammar.
3. Get user customized data based on a user’s unique identification key.
4. Build grammar as a string using queried data with utterance and interpretation slots.
5. Do a “Response.write” of the string with content type as ‘application/x-nuance-gsl’
6. call this asp.net page in VXML with grammar type txt/gsl.
Comments