mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3332 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
372c160c3f
commit
a5f16da175
2 files changed
+11
-3
No files matched your search
+10
-3
@@ -3464,10 +3464,12 @@ static switch_status_t play_or_say(switch_core_session_t *session, switch_ivr_me
|
||||
ptr = menu->ptr;
|
||||
}
|
||||
|
||||
if (menu->tts_engine && menu->tts_voice) {
|
||||
switch_ivr_speak_text(session, menu->tts_engine, menu->tts_voice, NULL, 0, NULL, sound, ptr, len);
|
||||
} else {
|
||||
if (*sound == '/' || *sound == '\\') {
|
||||
switch_ivr_play_file(session, NULL, sound, NULL, NULL, ptr, len);
|
||||
} else {
|
||||
if (menu->tts_engine && menu->tts_voice) {
|
||||
switch_ivr_speak_text(session, menu->tts_engine, menu->tts_voice, NULL, 0, NULL, sound, ptr, len);
|
||||
}
|
||||
}
|
||||
|
||||
if (need) {
|
||||
@@ -3551,6 +3553,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_execute(switch_core_session_t *s
|
||||
case SWITCH_IVR_ACTION_PLAYSOUND:
|
||||
status = switch_ivr_play_file(session, NULL, aptr, NULL, NULL, NULL, 0);
|
||||
break;
|
||||
case SWITCH_IVR_ACTION_SAYTEXT:
|
||||
if (menu->tts_engine && menu->tts_voice) {
|
||||
switch_ivr_speak_text(session, menu->tts_engine, menu->tts_voice, NULL, 0, NULL, aptr, NULL, 0);
|
||||
}
|
||||
break;
|
||||
case SWITCH_IVR_ACTION_TRANSFER:
|
||||
switch_ivr_session_transfer(session, aptr, NULL, NULL);
|
||||
running = 0;
|
||||
|
||||
Reference in new issue
Block a user