Guest Tom Report post Posted 09/21/2004 01:23 PM All, In my script, I notice when the user presses a key twice, such as one then one, it takes one as the input for the prompt, then automatically takes one for the next prompt. This is not correct because some impatient users may press one ten times! This leads me to another question. Is there a way to "scan" for the input the entire time the wave file is playing? For example, lets us say the wave file says the following, "If you like unripe bananas press one. If you like ripe bananas press two. If you like overripe bananas press three. If you like rotten bananas press four." I want to stop the wave file as soon as the user presses one for example. I do not want to play the rest of the wave file. Is this possible without breaking it into separate pieces? Thanks, Tom Share this post Link to post
CSI Report post Posted 09/21/2004 02:09 PM How are you playing the wav file? If you play the file in a "Play Sound File" or "Capture Entered Number" module and also specifiy 'on {1} goto [Ripe_Bananas]', then it should continue as soon as the number is pressed. If you are playing the wav file in one module and capturing the input in another, it will be forced to wait until the wav file is finished playing. Share this post Link to post
Guest Tom Report post Posted 09/21/2004 02:59 PM CSI, I appreciated your response. That is exactly how I'm doing it. It is something similar to the following: on {1} goto [unRipe_Bananas] on {2} goto [Ripe_Bananas] on {3} goto [Rotten_Bananas] It currently does not work. Also, sometimes it seems to lose track of the script. If I go back, delete the Play Sound File item, add it again and setup the script and other properties, it works sometimes. It is a bit mysterious. Thanks Again, Tom Share this post Link to post
SupportTeam Report post Posted 09/21/2004 08:28 PM I notice when the user presses a key twice, such as one then one, it takes one as the input for the prompt, then automatically takes one for the next prompt. This sounds like normal expected operation - when a key is pressed VG goes to next module and when while in that module the key is pressed then VG goes on to the next module to which the path is pointing... I want to stop the wave file as soon as the user presses one for example. I do not want to play the rest of the wave file. That is normal operation - sound files stops as soon as a valid choice is made. Sounds like you are using a voice modem which does not stop the playing of the sound files when VG tells the modem to do so... If that's the case I'd recommend trying another modem or a Dialogic card. Share this post Link to post