<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>This code support currency and number pronounced in spanish, there are new files so that to pronounce numbers in spanish is different to english, for <BR>example, number 100 in english is one-hundred and 500 is five-hundred but in spanish that is not right way.</DIV>
<DIV> </DIV>
<DIV>Audio files neccesaries (included in phrase_es.xml):<BR> veinti.wav<BR> 100.wav<BR> 500.wav <BR> 700.wav<BR> 900.wav<BR>I changed code on mod_say_es.c and switch_status_t play_group method to improve support for pronouncing currency and number, this is new code:<BR> <BR>static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session,switch_input_args_t *args)<BR>{<BR> if (a) {<BR> switch(a) {<BR> case 1:<BR> if (b || c) {<BR> say_file("digits/hundred.wav");<BR> } else {<BR> say_file("digits/100.wav");<BR> }<BR>
<BR> break;<BR> case 5:<BR> say_file("digits/500.wav");<BR> <BR> break;<BR> case 7:<BR> say_file("digits/700.wav");<BR> break;<BR> case 9:<BR> say_file("digits/900.wav");<BR> break;<BR> default:<BR> say_file("digits/%d.wav", a);<BR> say_file("digits/hundred.wav");<BR> break;<BR> }<BR> }<BR> <BR> if (b) {<BR> if (b > 1) {<BR> switch (b) {<BR> case 2: if (c) {<BR> say_file("digits/veinti.wav");<BR> } else
{<BR> say_file("digits/20.wav");<BR> }<BR> break;<BR> default:<BR> say_file("digits/%d0.wav", b);<BR> if (c)<BR> {<BR> say_file("currency/and.wav"); <BR> }<BR> break;<BR> }<BR> } else {<BR>
say_file("digits/%d%d.wav", b, c);<BR> c = 0;<BR> }<BR> }<BR> if (c) {<BR> if (method == SSM_COUNTED) {<BR> say_file("digits/h-%d.wav", c);<BR> } else {<BR> say_file("digits/%d.wav", c);<BR> }<BR> }<BR> if (what && (a || b || c)) {<BR> say_file(what);<BR> }<BR> return SWITCH_STATUS_SUCCESS;<BR>}<BR> </DIV>
<DIV> </DIV>
<DIV>any suggestion is welcome</DIV>
<DIV> </DIV>
<DIV>Diego Toro<BR></DIV></td></tr></table><br>