cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
891
Views
0
Helpful
1
Replies

how to string together a prompt? P[ + fileName +]

andrewpasetti
Level 1
Level 1

Hello,

I'm trying to string together a prompt where the file name is a string variable which I would like to then resolve to a prompt on the server.

Using P[ + fileName + ] as the prompt to play does not work. Perhaps you can suggest what I am doing wrong. On another note, to change the directory, would it be as simple as adding a "\"?

Thanks,

Andrew

1 Reply 1

yogeswar
Level 4
Level 4

Hi,

a. Hope your requirement is as follows...

Consider a string variable X which contains the value "ICDWelcome.wav".

X="ICDWelcome.wav"

You can assign this string variable directly in the Play Prompt step.

b. By default the user prompts are taken from the directory

"C:\Program Files\wfavvid\Prompts\user\en_US"

If you have placed the prompts in a different directory (Say under C:\Prompts), you need to change the path in the script as

Prompt name = "..\..\..\..\Prompts\x.wav".

Do check and get back.

Regards

Yogi

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: