[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] src/modules/ibmtts.c: enable the SSML filter.
From: |
Christopher Brannon |
Subject: |
[PATCH 1/2] src/modules/ibmtts.c: enable the SSML filter. |
Date: |
Sat, 4 Sep 2010 02:22:28 -0500 |
This patch was taken from the Voxin package.
After applying it, IBMTTS can accept SSML.
I assume that Gilles Casse is the author of the patch, since he
distributes Voxin.
---
config/modules/ibmtts.conf | 4 ++--
src/modules/ibmtts.c | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/config/modules/ibmtts.conf b/config/modules/ibmtts.conf
index e692159..8555107 100644
--- a/config/modules/ibmtts.conf
+++ b/config/modules/ibmtts.conf
@@ -5,9 +5,9 @@
# is set to 1, SSML will be used and advanced features like
# index marking will be working. If set to 0, all SSML is
# deleted from the message prior to sending it to IBM TTS.
-# By default, SSML support is switched off.
+# By default, SSML support is switched on.
-# IbmttsUseSSML 0
+# IbmttsUseSSML 1
# -- Abbreviation dictionaries --
diff --git a/src/modules/ibmtts.c b/src/modules/ibmtts.c
index 45a30f6..6e62c25 100644
--- a/src/modules/ibmtts.c
+++ b/src/modules/ibmtts.c
@@ -299,9 +299,7 @@ static void* _ibmtts_stop_or_pause(void*);
MOD_OPTION_1_INT(IbmttsMaxChunkLength);
MOD_OPTION_1_STR(IbmttsDelimiters);
-/* Does IBM TTS support SSML or should we strip it off? */
MOD_OPTION_1_INT(IbmttsUseSSML);
-
MOD_OPTION_1_INT(IbmttsUseAbbreviation);
MOD_OPTION_1_INT(IbmttsAudioChunkSize);
MOD_OPTION_1_STR(IbmttsSoundIconFolder);
@@ -375,7 +373,7 @@ module_load(void)
MOD_OPTION_1_INT_REG(IbmttsMaxChunkLength, 3000);
MOD_OPTION_1_STR_REG(IbmttsDelimiters, "");
- MOD_OPTION_1_INT_REG(IbmttsUseSSML, 0);
+ MOD_OPTION_1_INT_REG(IbmttsUseSSML, 1);
MOD_OPTION_1_INT_REG(IbmttsUseAbbreviation, 1);
MOD_OPTION_1_INT_REG(IbmttsAudioChunkSize, 20000);
@@ -459,6 +457,10 @@ module_init(char **status_info)
eciSetParam (eciHandle, eciDictionary, !IbmttsUseAbbreviation);
+ eciSetParam (eciHandle, eciInputType, 1);
+ /* load possibly the ssml filter */
+ eciAddText(eciHandle, " `gfa1 ");
+
alloc_voice_list();
/* These mutexes are locked when the corresponding threads are suspended.
*/
--
1.7.2.2
- [PATCH 1/2] src/modules/ibmtts.c: enable the SSML filter.,
Christopher Brannon <=