if (prev_thousands == 0) { | if (prev_thousands == 0) { | ||||
if ((decimal_point == 0) && (ordinal == 0)) { | if ((decimal_point == 0) && (ordinal == 0)) { | ||||
// Look for special pronunciation for this number in isolation (LANG=kl) | // Look for special pronunciation for this number in isolation (LANG=kl) | ||||
sprintf(string, "_%dn", value); | |||||
sprintf(string, "_%ldn", value); | |||||
if (Lookup(tr, string, ph_out)) | if (Lookup(tr, string, ph_out)) | ||||
return 1; | return 1; | ||||
} | } |
_test_espeak_ng_phoneme_events_cb(short *samples, int num_samples, espeak_EVENT *events) { | _test_espeak_ng_phoneme_events_cb(short *samples, int num_samples, espeak_EVENT *events) { | ||||
char *out = events->user_data; | char *out = events->user_data; | ||||
size_t offset; | size_t offset; | ||||
(void) samples; | |||||
(void) num_samples; | |||||
for (espeak_EVENT *e = events; e->type != 0; e++) { | for (espeak_EVENT *e = events; e->type != 0; e++) { | ||||
if (e->type == espeakEVENT_PHONEME) { | if (e->type == espeakEVENT_PHONEME) { | ||||
if (out[0] == 0) offset = 0; | if (out[0] == 0) offset = 0; |