]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Chinese say now say "one" before "ten" for numbers >99
authorSteve Underwood <steveu@coppice.org>
Sat, 17 May 2014 06:28:58 +0000 (14:28 +0800)
committerSteve Underwood <steveu@coppice.org>
Sat, 17 May 2014 06:28:58 +0000 (14:28 +0800)
src/mod/say/mod_say_zh/mod_say_zh.c

index 88472beae639c6f51cd3b321af5d3d06cdd71cd9..457654396d997f6c7e7c4c419889dfeda6e2fb8a 100644 (file)
@@ -167,7 +167,7 @@ static switch_status_t zh_say_general_count(switch_core_session_t *session, char
                                case 8:
                                        /* Hundred thousands or tens column */
                                        if (digits[i] != '0') {
-                                               if (digits[i] != '1')
+                                               if (digits[i] != '1'  ||  (digits[i] == '1'  &&  digits[i - 1] > '0'))
                                                        say_file("digits/%c.wav", digits[i]);
                                                say_file("digits/10.wav");
                                        } else {