VoiceGuide IVR Software Main Page
Jump to content

Vg.script_goto Error, Partially Works

Recommended Posts

Hello

 

I've got a VB script as follows:

set vg = CreateObject("VoiceGuide.CommandLink")
vg.Admin_TraceLogAdd 0, 0, "menu -" 
set vg = Nothing

if $RV[Zapytanie_1_1]=$RV[Podaj haslo] then

set vg = CreateObject("VoiceGuide.CommandLink")
vg.Admin_TraceLogAdd 0, 0, "goto - " 
set vg = Nothing


set vg = CreateObject("VoiceGuide.CommandLink")
vg.Script_Goto $RV_LINEID, "menu.vgs", "menu","[index]{$RV[Indeks]}[semestr]{$RV[semestr]}"
set vg = Nothing

else
set vg = CreateObject("VoiceGuide.CommandLink")
vg.Run_ResultReturn $RV_LINEID, "fail" 
set vg = Nothing

end if

 

it is supossed to run menu.vgs

 

condition is true (in log goto -).

 

it writes to a log that menu.vgs was executed and a wave file was generated (the file is really on disk, and it's correct) but the call is cancelled (hang up)

 

you don't hear a generated file at all (it should say text)

 

menu.vgs should play a tts generated text 3 times

 

Could you help me?

 

here come the log file

 

152945,78  8 [dobre haslo?] Running VB Script...
152945,78  8 RVreplace start (strlen>100)
152945,80  8 Run Script waiting... (shellid=1996, process=1512)
152945,83  0 menu - 
152945,83  0 goto - 
152945,84  8 cl    Script_Goto 8, menu.vgs, menu,"menu -" 
152945,84  2 tr    NewVgsVgm_Goto menu.vgs,menu,"menu -",,,0
152945,84  0 LoadedVgs_Find C:\Program Files\VoiceGuide\Scripts\infolinia\menu.vgs at idx=4
152945,84  2 tr    NewVgsVgm_Goto 1
152945,84  2 tr    NewVgsVgm_Goto 2
152945,84  8 [menu] Playing
152945,84  8 tts generate start[<p><RATE SPEED="-1">text</RATE></p>]
152946,85  8 tts generate end
152946,85  8 [menu] Playing (C:\Program Files\VoiceGuide\data\tts8.wav)
152946,85  8 PlaySoundStart ok [C:\Program Files\VoiceGuide\data\tts8.wav]
152946,85  8 RunModule PLAY end
152946,85  2 tr    NewVgsVgm_Goto end
152946,86  8 dtmf *   (66175,42,2)
152946,86  8 LsPlayMsg *
152946,97  8 PlaySoundStop ok
152946,98  8 Hanging up call... [Hangup Module]

 

Best regards

Dominik

Share this post


Link to post
152945,84  8 [menu] Playing

152945,84  8 tts generate start[<p><RATE SPEED="-1">text</RATE></p>]

152946,85  8 tts generate end

152946,85  8 [menu] Playing (C:\Program Files\VoiceGuide\data\tts8.wav)

152946,85  8 PlaySoundStart ok [C:\Program Files\VoiceGuide\data\tts8.wav]

152946,85  8 RunModule PLAY end

Trace shows that the TTS system generated an empty file - you should be able to confirm this by looking at the C:\Program Files\VoiceGuide\data\tts8.wav

 

Please try specifying just

 

text

 

in the TTS field for now, rather then

 

<p><RATE SPEED="-1">text</RATE></p>

 

Maybe your TTS engine cannot correctly interpret the <RATE SPEED="-1"> XML tag...

 

 

The VBScript itself looks fine. You can reduce the line count a bit by just creating the "VoiceGuide.CommandLink" object once, ie:

set vg = CreateObject("VoiceGuide.CommandLink")
vg.Admin_TraceLogAdd 0, 0, "menu -" 
if $RV[Zapytanie_1_1]=$RV[Podaj haslo] then
 vg.Admin_TraceLogAdd 0, 0, "goto - " 
 vg.Script_Goto $RV_LINEID, "menu.vgs", "menu","[index]{$RV[Indeks]}[semestr]{$RV[semestr]}"
else
 vg.Run_ResultReturn $RV_LINEID, "fail" 
end if
set vg = Nothing

Which version of VG are you using (v5.1.7 or some older one?)

Share this post


Link to post

I'm using VG 5.1.7001

 

tts8.wav is correctly generated, i can hear text

 

What can be wrong?

 

PS. thanks for a tip.

 

Best wishes,

Dominik

Share this post


Link to post

If you can hear sound OK when you use:

 

text

 

in the TTS field for now, rather then

 

<p><RATE SPEED="-1">text</RATE></p>

 

this means that the TTS engine that is installed on your system does not know how to generate TTS when supplied with input like

 

<p><RATE SPEED="-1">text</RATE></p>

 

What TTS engine is installed?

Please read the TTS engine's manual to see what input it does accept...

Share this post


Link to post

Both cases work properly.

 

<p><RATE SPEED="-1">text</RATE></p>

vs.

text

 

first one is a bit slower so the XML tag is recognized

 

I'm using Elan tempo demo version

 

Best wishes,

Dominik

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
×