summaryrefslogtreecommitdiffstats
path: root/pico
diff options
context:
space:
mode:
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;