07-27-2021 03:46 AM
Hey everyone. I am developing a CVP application which has a requirement of collecting caller input to enter their ID. IDs can be alphanumeric. Is there a way to have my app convert the number to a corresponding letter? For example, if my ID is CM123 I would enter 26123 on the keypad and for the first two digits it would try to lookup the various combinations of results (AM, BM, CM, AN....etc). I am by no means a Java guy so would like to do this with default elements if possible. Thanks everyone.
07-27-2021 06:57 AM - edited 07-27-2021 06:58 AM
You should be able to do this via javascript. I'm just going to put down some generic code to get you started. I assume that first digit and second digit are always letters. Using an Action Element the below would split your ID into an array and then look at position 0 to evaluate what number is it. Under Settings for the element use a local variable like IDFirstLetter and make the value:
importPackage(com.audium.server.cvpUtil);
var ID = {Data.Element.enterID.value};
var arrayID = ID.split();
if (arrayID[0] == '2'){
return A
}else if (arrayID[0]=='3')}
return B
}else{
return ?
david
07-27-2021 08:46 AM
I think you could also do this with a converted data lookup. Assuming that your data is in a table structure, convert each alphanumeric entry to its corresponding digits: chadmeyer -> 242363937. Store both the name and the entry as data fields. Then, when the user enters that digit combination, you can easily match the numbers. This has the added benefit of knowing if there are any converted numeric collisions beforehand.
08-04-2021 02:23 PM
Thank you both for the replies. Part of the project is to incorporate Nuance TTS and are now investigating deploying the ASR component as well. Unrelated to this topic do either of you have any CVP app examples that use Nuance? I am coming up short with examples online. Thanks!
08-12-2021 10:08 AM
As far as programming a Cisco IVR goes, the TTS/ASR server type has been transparent to me. Meaning that I have very rarely needed to code anything to a specific brand of speech server. They all work about the same as far as CVP is concerned.
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