Created by: null on 04-11-2003 05:32:57 AM Hi, I had created a grammar file(MyFirstGrammar.xml) and put that file into the default directory. In the form settings of an application, I put only the name of the grammar file in the voice grammar field. But it doesn't pick the names from grammar. I am using a Nuance voice Web server 2 and Audium3.2. The application hangs up. Do I have to specify the URL in the voice grammar? Can you show me an example of how to specify he URL, if I store the file in c:/Tomcat/Audium/Grammar directory? The grammar file follows [code:1:6f09e36603] <?xml version= "1.0"?> <!-- --> <grammar xml&#58;lang = "en-US" version = "1.0" root = "grammar1"> <rule id = "grammar1" scope = "public"> <one-of> <item tag = "Elam">elam</item> <item tag = "Colin">colin</item> <item tag = "Mathew">mathew</item> <item tag = "sira">Sira</item> </one-of> </rule> </grammar> [/code:1:6f09e36603]
Subject: RE: Specifying a grammar in a form Replied by: null on 05-11-2003 12:47:41 AM Hi Jaison, a couple of notes about grammars and where to put them.
Remember, since Audium's only responsibility is to dynamically create VoiceXML for use by the voice browser, any grammar URL you enter into the Audium Builder will simply appear within the VoiceXML. This URL will be accessed by the voice browser to get the grammar, so you have to put the grammar in a place where it can be obtained by the voice browser directly.
While it is ok to put your grammars in the TOMCAT_HOME/Audium/Grammar this is not recommended by Audium because this appears within the expanded WAR file created by the application server. If you ever updated your version of Audium the expanded WAR file and anything inside it would be deleted. For this reason, we recommend placing any files you wish to be hosted in the TOMCAT_HOME/webapps/ROOT directory. In this directory you can place any files or even other subdirectories you wish. Lets say you put your grammar file in this directory, so in your case the full path could be:
C:\Tomcat\webapps\ROOT\MyFirstGrammar.xml
The URL you would need to call to access this would be:
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: