提交 9ea9c800 authored 作者: Mike Murdock's avatar Mike Murdock

Added ability to spell digits too

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3919 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8b51f174
......@@ -63,11 +63,16 @@ static switch_status_t en_spell(switch_core_session_t *session,
for(p = tosay; p && *p; p++) {
int a = tolower((int) *p);
if (type == SST_NAME_SPELLED) {
say_file("ascii/%d.wav", a);
} else if (type == SST_NAME_PHONETIC) {
say_file("phonetic-ascii/%d.wav", a);
}
if (a >= 48 && a <= 57) {
say_file("digits/%d.wav", a-48);
}
else {
if (type == SST_NAME_SPELLED) {
say_file("ascii/%d.wav", a);
} else if (type == SST_NAME_PHONETIC) {
say_file("phonetic-ascii/%d.wav", a);
}
}
}
return SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论