VoiceGuide IVR Software Main Page
Jump to content

Vb Script Sound Files

Recommended Posts

Hi there, i have the following vb script

 

Dim SayNumber, WavPath, SafePayRefNr

 

RefNr = "$RV[RefNr]"

WavPath = "Sound\Number\"

SayNumber = Digits(RefNr)

SayNumber = WavPath & Replace(SayNumber, ",", " ,Sound\Number\")

 

SayNumber = "Sound\SMP\SMP 017.wav ," & SayNumber

 

Set vg = CreateObject("VoiceGuide.CommandLink")

vg.Play_Start $RV_LINEID, SayNumber

set vg = Nothing

 

Set vg = CreateObject("VoiceGuide.CommandLink")

vg.Script_Goto $RV_LINEID, "","TransactionSMS"

set vg = Nothing

 

What it needs to do is say the reference number out and then redirect to another sound file module, what currently happens is that it plays 1 sec of the SayNumber sound file and then just skips to the "TransactionSMS" module.

If i take off the goto part it pays fine but then even if i put a success or timeout {0} to go to the next module nothing happens... Please help :)

Share this post


Link to post

Create the filename in a VBScript module like you do right now but just save the filename to your own RV. Then use a Play module to play the sound file specified in the RV.

Share this post


Link to post

Or just add your own "Say Number" function to the lib_num2wav.vbs file, and then you will be able to use your custom function directly form within the Say Numbers module...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×