[Freeswitch-svn] [commit] r13811 - freeswitch/trunk/src/mod/asr_tts/mod_unimrcp

FreeSWITCH SVN crienzo at freeswitch.org
Wed Jun 17 05:48:06 PDT 2009


Author: crienzo
Date: Wed Jun 17 07:48:05 2009
New Revision: 13811

Log:
specify tts profile with sh->param

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

Modified: freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	Wed Jun 17 07:48:05 2009
@@ -1309,6 +1309,7 @@
 {
 	switch_status_t status = SWITCH_STATUS_SUCCESS;
 	speech_channel_t *schannel = NULL;
+	const char *profile = sh->param;
 
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "speech_handle: name = %s, rate = %d, speed = %d, samples = %d, voice = %s, engine = %s, param = %s\n",
 						sh->name, sh->rate, sh->speed, sh->samples, sh->voice, sh->engine, sh->param); 
@@ -1329,7 +1330,9 @@
 	sh->private_info = schannel;
 
 	/* try to open an MRCP channel */
-	const char *profile = globals.unimrcp_default_synth_profile;
+	if (switch_strlen_zero(profile)) {
+		profile = globals.unimrcp_default_synth_profile;
+	}
 	if (speech_channel_open(schannel, profile) != SWITCH_STATUS_SUCCESS) {
 		status = SWITCH_STATUS_FALSE;
 		goto done;



More information about the Freeswitch-svn mailing list