VoiceGuide IVR Software Main Page
Jump to content

Say Number Digits Function Is Wrong In Lib_num2wav

Recommended Posts

In the new VG for Dialogic 3164 version the digits do not read correctly.

It seems you made changes on September 26 in the Digits function and since then it is wrong

I had to replace the lib_num2wav with a previous version.

The previous version worked fine for me, why did you ruin it?

Share this post


Link to post

The new digits function was designed to not speak anything else but digits and "-" and "&" characters, whereas old digits functions was trying to speak every character regardless of what it was (digits, letters, etc).

 

The version from 26th did however try to speak the "-" character as "silence.wav", and not as "minus.wav". Below is the correct version which speaks the "-" character as "minus.wav".

 

'######

'name : Digits

'info : Say the digits in the number

'arg1 : Digits to be spoken :

'######

Function Digits(byval arg1)

'returns a list of comma delimited wav files,

'with each wav file corresponding to a character

'in the supplied input string.

 

sDigits=Trim(arg1)

For i=1 To Len(sDigits)

sDigit = Mid(sDigits, i, 1)

If sDigit = "-" Then

sWav = "minus.wav"

ElseIf sDigit = "&" Then

sWav = "and.wav"

ElseIf sDigit >= "0" and sDigit < "9" then

sWav = sDigit & ".wav"

else

sWav = ""

end If

if sWav <> "" Then

If sOut = "" Then

sOut = sWav

else

sOut = sOut & "," & sWav

End if

End if

Next

Digits = sOut

 

End Function

Share this post


Link to post

I didn't have any special charachters in my numbers.They are just positive integers like 59 or 12345 etc.

The say number module, digits function either skipped a digit or skipped a whole number.

Share this post


Link to post
digits function either skipped a digit or skipped a whole number.

We have not encountered anything like that in our testing...

We'd need to see a trace which demonstrates the problem.

 

Enable logging by setting the log levels to 10 in VG.INI as per below:

[Log]

 

VoiceGuide=10

NumberLoader=0

VoicemailManager=0

EmailSender=0

TapiWrapOcx=10

SapiWrapOcx=0

Then restart VG and make a test call which demonstrates the problem.

 

Debug Trace files will be created in VG's \log\ subdirectory.

 

Please post the traces and the VoiceGuide script used.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

Share this post


Link to post

I have found the bug in the lib_num2wav Digits function.

It does not say 9 because in the the following line

 

ElseIf sDigit >= "0" and sDigit < "9" then

 

you missed the = sign in the sDigit <= 9

Share this post


Link to post

Thanks for reporting the problem. Here is the updated version of lib_num2wav.vbs (attached to this post).

 

The attached lib_num2wav.vbs should be placed in VoiceGuide's \System\vbs\ subdirectory, replacing existing version.

 

The new lib_num2wav.vbs will be included in next VoiceGuide for Dialogic install update.

lib_num2wav.zip

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
×