summaryrefslogtreecommitdiffstats
path: root/pico
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2010-02-04 18:09:49 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2010-02-04 18:09:49 -0800
commitfcc21f46aeca27a74898c1d111f4e153001db2a2 (patch)
tree74e4fa8f04fb0f7f8634e47a6ada7a35f4eaa0ec /pico
parent32fe67daa10aebef85f83f740f129a69c030b7c9 (diff)
downloadexternal_svox-fcc21f46aeca27a74898c1d111f4e153001db2a2.zip
external_svox-fcc21f46aeca27a74898c1d111f4e153001db2a2.tar.gz
external_svox-fcc21f46aeca27a74898c1d111f4e153001db2a2.tar.bz2
Fix bug 2098375 patch from SVOX to correct string ending of camelCase
corrected strings for proper synthesis.
Diffstat (limited to 'pico')
-rw-r--r--pico/tts/com_svox_picottsengine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pico/tts/com_svox_picottsengine.cpp b/pico/tts/com_svox_picottsengine.cpp
index 6fb0ac7..450ebcb 100644
--- a/pico/tts/com_svox_picottsengine.cpp
+++ b/pico/tts/com_svox_picottsengine.cpp
@@ -730,7 +730,7 @@ static char * doCamelCase( const char * str )
pos=tokstart+tlen_2;
}
//}
- data[outpos] = 0;
+ data[outpos -1] = 0;
return data;
}/*doCamelCase*/
@@ -1505,13 +1505,13 @@ tts_result TtsEngine::synthesizeText( const char * text, int8_t * buffer, size_t
}
} else {
/* camelCase pre-processing */
- //expanded_text = doCamelCase(text);
+ expanded_text = doCamelCase(text);
/* Add property tags to the string - if any. */
- local_text = (pico_Char *) doAddProperties( text );//expanded_text );
- /*if (expanded_text) {
+ local_text = (pico_Char *) doAddProperties( expanded_text );
+ if (expanded_text) {
LOGV("freeing string for %s", expanded_text);
free( expanded_text );
- }*/
+ }
if (!local_text) {
LOGE("Failed to allocate memory for text string");
return TTS_FAILURE;