This document was generated from CDN thread
Created by: null on 19-09-2003 12:44:43 PM
Hi,
How could I specify language at runtime for the Audium built-in grammars? Can I do it on the application level, or should I do it for every element? I am using Digits_With_Confirm, Yes_No_Menu, Record_With_Confirm Audium elements.
Thank you.
Tatiana
Subject: RE: Specifying language at runtime
Replied by: null on 22-09-2003 12:56:20 PM
Hi Tatiana,
The current version of Audium does not allow you to specify language for builtin grammars at the application level. You will have to set the language for each element. Also, for many of the elements shipped with Audium, you cannot change the builtin grammar language. For digits and yesno, I would recommend using a Form element (followed by a decision) that reference the specific language grammar required following the syntax required by VoiceGenie. As for Record, I don't believe that recognition is currently supported in record by VG.
Regards,
Joe
Subject: RE: Specifying language at runtime
Replied by: null on 25-09-2003 03:06:18 PM
Hi Joe,
Record_With_Confirm works great in English. Is there any possibility to make Record_With_Confirm to recognize French yes / no (for examle, is there the default grammar file that I can modify for this element)?
I tried to use Record element, then develop my own confirmation flow, but ran into a problem that need some extra effort - I cannot record the file directly into the place where I want it to be, because it will override the existing recording before confirmation. So I guess, I have to develop an element to move the file from temporary directory to the permanent one after confirmation.
What would be the best solution in this case?
Thank you.
Tatiana.
Subject: RE: Specifying language at runtime
Replied by: null on 25-09-2003 07:14:36 PM
Hi Tatiana,
The Audium Record_With_Confirm element does not itself have a mechanism to replace the yes/no grammar because it uses the voice browser's built-in boolean grammar. Therefore, if you can replace the boolean built in grammar on the VoiceGenie side the Record_With_Confirm will support French utterances. In fact all _With_Confirm elements as well as the Yes_no_Menu element will also work with French as well.
As for your alternative, what you can do is configure the Record element to not have a filename that you specify. That way, the element itself will create a file using a non-repeating filename that will not overwrite your existing file. The Record element creates element data named "recording" which stores the name of the file. You can then use this in the yes_No_menu you use for confirmation using Say It Smart with the "File" type which will play the file found in the element data.
The only issue with this is if the caller says "no", you will have to create some element that deletes the file otherwise the number of files will eventually collect forever.
Try it out. It should work fine.