[asterisk-bugs] [Asterisk 0015626]: [patch] Vietnamese support for SayNumber() function.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 1 16:06:43 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15626 
====================================================================== 
Reported By:                dinhtrung
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15626
Category:                   Applications/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Target Version:             1.6.x Version Tracker
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-31 15:31 CDT
Last Modified:              2009-09-01 16:06 CDT
====================================================================== 
Summary:                    [patch] Vietnamese support for SayNumber() function.
Description: 
Hi, I have successfully add another function for Vietnamese : SayNumber().
There are some minor changes in the way we Vietnamese speak numbers.
For examples:
- 1050 = 1 + thousand + 0 + hundred + 50 (in English : 1 + thousand + 50).
I used the file 0-hundred.wav for this.
- 1007 = 1 + thousand + 0 + hundred + odd + 7 (the file odd.wav can have
another meaning, not only on the contrary with "even". We usually add "odd"
if the number has 2 "0" in the middle, like 2008, 3004... I used the file
0-hundred-odd.wav for this.
- For the last number, if it's a 5, then if the number before it is not a
0, we will use another word for it. E.g, 25 is not 20 + 5, but 20 + 5l. So
is 15, 35, 45, 55... But 05 is 5. So I add another sound file named 5l.wav
here to separate this.

I hope this will help Asterisk better support Vietnamese.

Sorry for my bad English.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-01 16:06 lmadsen        Target Version            => 1.6.x Version
Tracker
======================================================================




More information about the asterisk-bugs mailing list