03-15-2005 09:38 AM - edited 03-13-2019 10:46 PM
We want to use in the same script Spanish and English. The user can select if he wants to be attended in one language or another. how can we get this? For example: We keep all the prompts of both languages in the same directory?
How can you specify in which language is the input from a "Get Digit String" or "Simple recognition"?
Thanks
Solved! Go to Solution.
03-17-2005 08:25 AM
Hmm, couple of issues there. First, Get Digit String doesn't use ASR. If you just want to play a prompt and have them enter numbers, you could use a Get Digit String and just specify a prompt recorded in Spanish. As to where the prompt is stored, that's up to you. You could put them all in the same default directory and just reference an Espanol or English prefix on the name or you could put them in different directories and specify this wherever you specify a prompt. An example of this would be:
P[espanol\promptName.wav] for the Spanish version or
P[promptName.wav] for English version assuming English is the default language.
If you wanted to change default prompt languages and paths to the directories, you could do this under Engine--> System Parameters.
Now if you want to play a prompt in Spanish and have it make a decision based on ASR, you'll have to setup a Grammar. When you setup the Grammar, you will specify there which language it should expect. Once the Grammar is configured, you'll specify it under a Simple Recognition step along with the appropriate prompt.
Is this what you were looking for?
Jim
03-16-2005 07:45 AM
I may be misunderstanding the question, but how about this... You create all your prompts as Spanish001, Spanish002, etc, and English001, English002, etc. You play the option at the beginning of the script for which language they want. Based on the answer set a string variable (like strPromptPrefix) to either "English" or "Spanish". Then, for each of your menus, get digit strings, play prompts, etc, in the script list the prompt to play as strPromptPrefix + "001".
Is this what you were looking for?
Jim
03-17-2005 12:25 AM
This is not exactly my question. The issue is that there is a default language directory for the prompts (in Prompt Management page). i have to keep the English and Spanish prompts in the same directory? And when I use a Get Digit String step which language is the ASR going to understand? where I can change this?
03-17-2005 08:25 AM
Hmm, couple of issues there. First, Get Digit String doesn't use ASR. If you just want to play a prompt and have them enter numbers, you could use a Get Digit String and just specify a prompt recorded in Spanish. As to where the prompt is stored, that's up to you. You could put them all in the same default directory and just reference an Espanol or English prefix on the name or you could put them in different directories and specify this wherever you specify a prompt. An example of this would be:
P[espanol\promptName.wav] for the Spanish version or
P[promptName.wav] for English version assuming English is the default language.
If you wanted to change default prompt languages and paths to the directories, you could do this under Engine--> System Parameters.
Now if you want to play a prompt in Spanish and have it make a decision based on ASR, you'll have to setup a Grammar. When you setup the Grammar, you will specify there which language it should expect. Once the Grammar is configured, you'll specify it under a Simple Recognition step along with the appropriate prompt.
Is this what you were looking for?
Jim
03-18-2005 07:54 AM
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