From fcc21f46aeca27a74898c1d111f4e153001db2a2 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Thu, 4 Feb 2010 18:09:49 -0800 Subject: Fix bug 2098375 patch from SVOX to correct string ending of camelCase corrected strings for proper synthesis. --- pico/tts/com_svox_picottsengine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pico') 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; -- cgit v1.1