Guest Chicago Report post Posted 04/23/2004 04:39 PM I'm trying to find a software solution and wondering if VoiceGuide has the capability to do what I need. I need an autodialer which (upon the recipient answering) plays a random wave file and disconnects. The program needs to be able to choose randomly from among thousands of different wave files. Can VoiceGuide do this or can a script be easily written within VoiceGuide to provide this capability? Thank you! Share this post Link to post
SupportTeam Report post Posted 04/23/2004 08:54 PM Sure it can, just have the script which is used when call is answered select the file at random and then play it. Say you have sound files names 1000.wav through to 9999.wav To generate a random number between 1000 and 9999 you would use an Evaluate Expression module with the following expression: Int(9000 * Rnd + 1000) And then use the Result Variable from that module in a Play module to play the file. If the Evaluate Expression module was titled "GenerateRandom" then in the play module you would specify: $RV[GenerateRandom].wav sample script attached. RandomPlay.vgs Share this post Link to post