[Freeswitch-users] Spanish Prompts
Luis F Urrea
lfurrea at gmail.com
Tue Aug 11 11:55:45 PDT 2009
The patch submitted by Diego Toro, however would fix the actual
pronunciation of currency and dates from 20th - 29th which are not working
with the "english" implementation of mod_say_es.c
In regards the dates pronunciation for voicemail for example we used the
following changes to mod_say_es.c
372,375c412,427
- say_file("time/day-%d.wav", tm.tm_wday);
- say_file("time/mon-%d.wav", tm.tm_mon);
- say_num(tm.tm_mday, SSM_COUNTED);
- say_num(tm.tm_year + 1900, SSM_PRONOUNCED);
---
+ if (tm.tm_mday == 1) {
+ say_file("time/day-%d.wav", tm.tm_wday);
+ say_num(tm.tm_mday, SSM_COUNTED);
+ say_file("time/de.wav");
+ say_file("time/mon-%d.wav", tm.tm_mon);
+ say_file("time/de.wav");
+ say_num(tm.tm_year + 1900, SSM_PRONOUNCED);
+
+ } else {
+ say_file("time/day-%d.wav", tm.tm_wday);
+ say_num(tm.tm_mday, SSM_PRONOUNCED);
+ say_file("time/de.wav");
+ say_file("time/mon-%d.wav", tm.tm_mon);
+ say_file("time/de.wav");
+ say_num(tm.tm_year + 1900, SSM_PRONOUNCED);
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090811/210e45f0/attachment-0002.html
More information about the FreeSWITCH-users
mailing list