From 779ca66f0c7d79a515cc9e606e06478ce6b9a122 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 11 Sep 2007 20:41:16 +0000 Subject: [PATCH] tweak to avoid cepstral crash git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5697 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 1632293cc5..d07cab79f4 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -161,6 +161,7 @@ typedef struct conference_file_node { uint8_t async; switch_memory_pool_t *pool; uint32_t leadin; + int nv; struct conference_file_node *next; } conference_file_node_t; @@ -2274,9 +2275,11 @@ static switch_status_t conference_member_say(conference_member_t * member, char text = tmp + 1; switch_copy_string(voice, vp, (tmp - vp) + 1); switch_core_speech_text_param_tts(fnode->sh, "voice", voice); + fnode->nv = 1; } - } else { + } else if (fnode->nv) { switch_core_speech_text_param_tts(fnode->sh, "voice", conference->tts_voice); + fnode->nv = 0; } switch_core_speech_feed_tts(fnode->sh, text, &flags); @@ -2363,9 +2366,11 @@ static switch_status_t conference_say(conference_obj_t * conference, const char text = tmp + 1; switch_copy_string(voice, vp, (tmp - vp) + 1); switch_core_speech_text_param_tts(fnode->sh, "voice", voice); + fnode->nv = 1; } - } else { + } else if (fnode->nv) { switch_core_speech_text_param_tts(fnode->sh, "voice", conference->tts_voice); + fnode->nv = 0; } /* Begin Generation */