File freeswitch-cep-utf8.diff of Package freeswitch

diff -urN freeswitch-1.0.rc5.orig/src/mod/asr_tts/mod_cepstral/mod_cepstral.c freeswitch-1.0.rc5/src/mod/asr_tts/mod_cepstral/mod_cepstral.c
--- freeswitch-1.0.rc5.orig/src/mod/asr_tts/mod_cepstral/mod_cepstral.c	2008-02-03 23:14:57.000000000 +0100
+++ freeswitch-1.0.rc5/src/mod/asr_tts/mod_cepstral/mod_cepstral.c	2008-05-14 20:43:47.892062710 +0200
@@ -208,8 +208,10 @@
 {
 	cepstral_t *cepstral;
 	const char *fp = "file:";
+	const char *encoding = "utf-8";
 	int len = (int) strlen(fp);
 
+
 	assert(sh != NULL);
 	cepstral = sh->private_info;
 	assert(cepstral != NULL);
@@ -224,7 +226,7 @@
 		if (switch_strlen_zero(text)) {
 			return SWITCH_STATUS_FALSE;
 		}
-		swift_port_speak_file(cepstral->port, text, NULL, &cepstral->tts_stream, NULL);
+		swift_port_speak_file(cepstral->port, text, encoding, &cepstral->tts_stream, NULL);
 	} else {
 		char *to_say;
 		if (switch_strlen_zero(text)) {
@@ -232,7 +234,7 @@
 		}
 
 		if ((to_say = switch_mprintf("<break time=\"1000ms\"/> %s <break time=\"1000ms\"/>", text))) {
-			swift_port_speak_text(cepstral->port, to_say, 0, NULL, &cepstral->tts_stream, NULL);
+			swift_port_speak_text(cepstral->port, to_say, 0, encoding, &cepstral->tts_stream, NULL);
 			switch_safe_free(to_say);
 		}
 	}
openSUSE Build Service is sponsored by