VoiceGuide IVR Software Main Page
Jump to content

Min Record Time

Recommended Posts

How do I set a minimum record time? I modified VG.INI to "RecLengthMin=30" (I assume for 3 seconds), restarted VoiceGuide, but was still able to leave a 1/2 second message.

Share this post


Link to post

Which version of VG are you using?

 

Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what is going wrong.

(When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.)

Share this post


Link to post

Version is 5.2.1009 Professional. I have logging enabled, so I cut out the portion from a test call and attached it here.

foo.txt

Share this post


Link to post

In v5.0 onwards the RecLengthMin setting no longer applies and should have been deleted from VG.INI file - there is a different way of checking record length in v5:

 

The supplied trace shows how long the recorded file is (over 6 seconds long), and also shows us some new Result Variables which have been set by the system:

114708.62  0 [Rec GMPNiteNoPt1] Recording

114710.16  0 LsRecPlayBeep EV_PLAY_FINISHED

114710.50  0 RecSoundStart file[C:\Call Off\GMPNiteNoPt1.wav] ok

...

114716.50  0 dtmf #   (66044,35,2)

114716.54  0 rec length RV: Rec GMPNiteNoPt1_RecLen100ms = 62

114716.54  0 rv    add [Rec GMPNiteNoPt1_RecLen100ms]{62}

114716.55  0 rv    add [Rec GMPNiteNoPt1_EndRecCause]{#}

 

The recording length is now available using the _RecLen100ms Result Varaible:

From VG Help file:

$RV[ModuleTitle_RecLen100ms] will store the recording length in 100ms units (eg. a value of 75 equals seven and a half seconds).

 

Please use $RV[Rec GMPNiteNoPt1_RecLen100ms] in your script in an Evaluate Expression module to determine whether the recorded message is long enough or not. eg: in Evaluate Expression module use:

 

$RV[Rec GMPNiteNoPt1_RecLen100ms] > 30

 

and if expression is True the you have a recording longer then 3 seconds...

 

If it turns out that the recorded file is not long enough then you can delete the recorded file using this vb script:

 

Set fso    = CreateObject("Scripting.FileSystemObject")

On Error Resume Next

'up to 3 deletion attempts

for i = 1 to 3

  if fso.FileExists("$RV[Rec GMPNiteNoPt1]") = True then

    fso.DeleteFile "$RV[Rec GMPNiteNoPt1]", True

  else

    Set fso  = Nothing

    WScript.Quit

  end if

   WScript.Sleep 100

next

Set fso  = Nothing

Share this post


Link to post
In v5.0 onwards the RecLengthMin setting no longer applies and should have been deleted from VG.INI file

 

That explains why it wasn't working.

 

Please use $RV[Rec GMPNiteNoPt1_RecLen100ms] in your script in an Evaluate Expression module to determine whether the recorded message is long enough or not

 

Works great, thanks!

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
×