VoiceGuide IVR Software Main Page
Jump to content

Vbs Module With Playing Sound File

Recommended Posts

I have this vbs module with a sound file to play specified using the "sound file to play" text box.

 

'START---------------------------------------

Set Conn = CreateObject("ADODB.Connection")

Set vg = CreateObject("vgServices.CommandLink")

Sucursales = 0

 

Path = Trim("$RV[PathApp]")

Data = ("File Name=" + Path + "Conn.udl")

Conn.Open = Data

 

Lenght = InStr(Conn,";Use Procedure for")

SQLConnSTR = Trim(Left(Conn,(Lenght-1)))

DB = Split(Split(SQLConnSTR,";")(4),"=")(1)

Server = Split(Split(SQLConnSTR,";")(5),"=")(1)

 

vg.RvSet $RV_LINEID,"SQLConnStr",SQLConnSTR

vg.RvSet $RV_LINEID,"Server",Server

vg.RvSet $RV_LINEID,"DB",DB

 

If Sucursales = 0 Then

vg.Script_Goto $RV_LINEID,"TeleCoopMain.vgp","GetCustID",""

Else

vg.Script_Goto $RV_LINEID,"TeleCoopMain.vgp","Sucursal",""

End If

 

vg.Admin_TraceLogAdd $RV_LINEID,0,"Main.vbs Succeded"

 

Conn.Close

Set Conn = Nothing

Set vg = Nothing

'END--------------------------------------------------------------------

 

The script works correctly, but the sound file not completes.

When the VBscript ends, the sound file be stopped.

 

NOTE: I selected the "Wait until VBScript and sound file completes" option in the combo box.

Thanks

Share this post


Link to post

Can you please post the VoiceGuide trace capturing the call.

 

Please .ZIP up any files before posting them.

Share this post


Link to post

I try using the Run_ResultReturn variables and I have the same problem. (the sound file not completes the play, when the VBscript ends, the sound file be stopped)

 

I'm sending to you a .zip file with both versions of vbs scripts and the logs file.

Logs.zip

Share this post


Link to post

The sound file not completes the play, when the VBscript ends, the sound file be stopped.

I have two versions of VBscript, one using RunResultReturn variable and one not using this variable.

I'm sending to you a .zip file with both versions of vbs scripts and the logs file.

Logs.zip

Share this post


Link to post

When the Script_Goto and vg.Script_Gosub commands are used the scripts will immediately jump to the specified script/module.

 

When using the Run_ResultReturn command then VoiceGuide should wait for the sound file to complete (if "Wait until VBScript and sound file completes" option is selected).

 

Is this what you are seeing on your system?

Share this post


Link to post

Yes, I'm using the Run_ResultReturn command with the option "Wait until VBScript and sound file completes" selected and the sound file stopped too.

Share this post


Link to post

This is my initial script and module. It's a VBS module with a sound file to be play.

The module runs ok but the sound file will be stopped when the vbs module ends.

I do not more to do.

Thanks

Init.zip

Share this post


Link to post

We ran a test on a system in our labs which is running the current v7.1 of VoiceGuide and confirmed that system will wait for sound file to complete when "Wait until VBScript and sound file completes" option is chosen.

 

Looking at your traces it looks like an older verion of VoiceGuide is installed on your system. Please update VoiceGuide software to the current release.

 

Relevant trace excerpt from our sytem:

 

154039.928 3 1 1 state [save Data to File VBS] Playing wav (11.wav,12.wav,13.wav,14.wav,15.wav,16.wav,17.wav,18.wav,19.wav,20.wav)

...

154040.225 7 remoting link constructor activated: vgServices_CommandLink

154040.225 7 1 1 rem Run_ResultReturn [success]

...

154040.225 3 1 1 rv add [save Data to File VBS_ResultReturn]{success}

154040.225 3 1 1 path {success} found (at offset 3)

154040.225 3 1 1 FindNextVgmTitleInPathList: next module title is=[say Thanks...]

154040.225 3 1 1 module's runwait=2, WavPlayHasNowFinished=0, iRunWait_ExeResult_NextVgm=44

154040.225 3 1 1 wait till WAV finished then goto [say Thanks...] (idx=44)

...

154040.757 3 1 1 task completed. vgm=48, iRunWait=2, iRunWait_ExeResult_NextVgm=44=[say Thanks...]

154040.757 3 1 1 next module already set. no need to check for Result file

154040.757 3 1 1 RunWait option requires us to wait till after wav finishes playing

154050.257 15 1 1 ev PlayEnd 1 731156

...

154050.257 3 1 1 [say Thanks...] VGMTYPE_PLAY run start

Share this post


Link to post

Now i have installed the VoiceGuide v7.1.1 (vgEngine version : 7.1.3868.40484 (RELEASE Build) in the log file)

and the system works ok. Thank you very much, Diego Bellini

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
×