07-07-2004 06:33 AM - edited 03-13-2019 05:32 AM
I am building a script that will query a SQL database for names of companies. The caller will be prompted to say the name of the company using ASR. Can anyone give me the quick 5 second run down on how to build the GSL file or grammar? It obviously needs to be a dynamic grammar of sort. A sample script would be great as well if anyone has something. Thanks.
07-13-2004 07:40 AM
The document below has some information on configuring ASRs :
Configuring ASR and TTS Properties
07-21-2004 01:47 PM
It would be good if you can get a copy of the Nuance Grammer Developer Guide. (From Nuance)
There is a lot within the guide such as prefix to use and not to use that will help you build the Grammer you require.
______________________________
You can refer directly to compiled dynamic grammars in a dynamic grammar
database by specifying the keyword dgdb: followed by the database key and
database descriptor. The syntax for the dgdb: URI is:
dgdb:?key=val1&dbdesc=val2
where val1 is the database key and val2 is the database descriptor for the
grammar. Both val1 and val2 must be URI-encoded, which means that no
illegal characters are used. The list of characters that cannot be used include all
characters other than:
¡ a-z
¡ A-Z
¡ 0-9
¡ ; / ? : @ & = + $ , - _ . ! ~ * ' ( )
The illegal characters must be converted to hexadecimal and written as %xx. For
example, the space character, ASCII 32, becomes "%20". For more information
about URI encoding, see RFC 2396 (www.ietf.org/rfc/rfc2396.txt, section 2.4)
For example, in the following reference, the portion in bold must be
URI-encoded:
dgdb:?key=PeterGrammar&dbdesc=provider=fs,root=/usr/dbs,name=db1,
class=dgdb
To convert a DBDescriptor object to the URI-encoded string required by the
dgdb: URI scheme, use the Nuance DBDescriptor function
DBDescriptorToQueryString(). See the Nuance API Reference for more
information about this function.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide