We have a requirement which looks very ordinary/Simple. Here is how the Greeting (Prompt) looks like -
"Thanks for calling XYZ company, For Spanish Press 2."
Means, If user do not press 2, start playing prompts in English (Technically, do not go to Spanish Branch of the VXML).
The challenge is - The VXML should have a Language default to English unless Caller Presses 2 to select language.
If i have an option where i can prompt caller for language selection in the greeting like Press 1 for English or Press 2 for Spanish, i would have used the below code.
But how to achieve the requirement where i can keep English Language as Default and Wait if user do not press 2 in few seconds go to English Intro Menu. Can you please review the below code and guide me how to modify the language selection code.
Code: Select all
<form id="languageselection">
<property name="sensitivity" value="0.2"/>
<property name="confidencelevel" value="0.75"/>
<field name="lang">
<grammar>1{English}|2{Spanish}</grammar>
<prompt bargein="false">
<voice name="Crystal">
For English, press 1.
</voice>
</prompt>
<prompt bargein="false">
<voice name="Rosa" xml:lang="es-MX">
Para espanol, marque dos.
</voice>
</prompt>
<filled>
<if cond="lang =='English'">
<goto next="en_intromenu"/>
<else/>
<goto next="sp_intromenu"/>
</if>
</filled>
</field>
</form>