VoiceGuide IVR Software Main Page
Jump to content

Some Thing Wrong About Say Numer

Recommended Posts

this is my code in the lib_num2wav.vbs:

 

'######

'name : CN_Digits

'info : Say the digits in the number In Chinese

'arg1 : Digits to be spoken In Chinese :

'######

Function CN_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"

Else

sWav = sDigit & ".wav"

end If

If sOut = "" Then

sOut = sWav

else

sOut = sOut & "," & sWav

End if

Next

Digits = sOut

 

End Function

 

I have do nothing but modify the name of Digits,but when i choice the opinion in the Say Num module.I can hear a wrong message bell .

maybe I should do something more to solve this problem,but I don't know what to do.

0828_1641_vgEngine.txt

lib_num2wav.txt

vg.txt

test23.txt

Share this post


Link to post

The last line in this new function should be:

 

CN_Digits = sOut

 

(instead of Digits = sOut )

 

Have you looked into modifying the vgLib_SayNumbers.dll instead? Full source code to vgLib_SayNumbers.dll is provided and you can can modify the functions there (or add your functions to it) and recompile.

 

The newly created vgLib_SayNumbers.dll then just needs to be placed in VoiceGuide directory (replacing previous file) and VoiceGuide will then use that DLL when generating the lists of .WAV files to be played when saying numbers/dates etc.

Share this post


Link to post

At first ,I try to make this funtion by DLL,but when I build the project,some problems come out.could you give me some advice about how to recompile. For example,before I build what I should add in this project.

Share this post


Link to post

Before building vgLib_SayNumbers.dll for the first time you need to ensure that it is referencing the vgServicesInterfaces.dll

 

vgServicesInterfaces.dll is in the VoiceGuide directory.

 

If you get any other errors when compiling please post the errors here and we can better advise.

 

Are you using Visual Studio or some other environment?

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
×