04-29-2014 01:22 PM - edited 03-14-2019 01:24 PM
This should be easy, but the UCCX help file is very sparse and I've never done this before...
I'm using Get Digit String to pull a string of numbers and then want to play back the string as a prompt by concatenating the wav files I recorded (separate wav files for each digit 0-9). It seems like it would be Create Container Prompt or Create Generated Prompt somehow, but no idea at this point. Any help appreciated...
Solved! Go to Solution.
04-29-2014 02:25 PM
Completely understand..the big thing..if you are dev type..the Expression Editor of those "lego" drag/drop pieces will become your friend..I'm going to leave you a very simple screenshot and I hope it help..I'm leaving the script too..
04-29-2014 01:44 PM
Create Generated Prompt will use the System Prompts would that be fine?
04-29-2014 01:50 PM
Yeah, I realize that's an option, but I'd really like to know how to do it with my own prompts, not the system's. I'll settle for that if I have to, but there should be a way to reference my own prompts?
04-29-2014 01:58 PM
It gets complex..so check it out..
char[] ch = digitString.toCharArray();
Prompt p = P["PathToPrompt/"+ch[0]] + P["PathToPrompt/"+ch[1]]
Or if you are familiar with the for loop try this to string it together:
Set prompt = {
Prompt p = P[];
char[] ch = digitString.toCharArray();
int i;
for (i = 0; i < ch.length; i++)
p = p + P["PathToPrompt/"+ch[i]]
return p;
}
04-29-2014 02:07 PM
Thanks for that, however I need a bit more explanation as to what type of "step" this goes into and how. I'm certainly familiar with for/next loops (do lots of Autoit scripting) but still trying to become familiar with how things are done is this boxed-in/"Lego" drag&drop "language" if you could call it that. I'm really finding this annoying due to the extremely sparse documentation and examples from what I'm used to... ![]()
04-29-2014 02:25 PM
04-29-2014 02:35 PM
Oh... ![]()
(long pause)
Ok, I see now - that's really helpful. Now I have something I can dive into. hmm... Thanks for pointing me in that direction!!
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