Author: remi
Date: 2009-09-22 15:45:27 +0200 (Tue, 22 Sep 2009)
New Revision: 5485
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Automatic word corrections for TTS in the texts from gadgets
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
---
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
2009-09-22 13:44:06 UTC (rev 5484)
+++
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
2009-09-22 13:45:27 UTC (rev 5485)
@@ -44,6 +44,8 @@
self.__startStopPauseMutex = threading.Lock()
self.__execStarted = False
self.__execPaused = False
+ self.__language =
resourcePluginsServer.getPluginsContainer().getLanguage()
+ self.__translations = Translation("tts_fixes")
def getPluginInterpreterContext(self):
"""
@@ -270,6 +272,7 @@
if not self.executionIsStarted():
resourceTuxDriver.closeMouth()
return
+ text = self.__translations.fixeWordsInText(text, self.__language)
resourceTuxOSL.ttsSpeak(text, locutor, pitch)
if not self.executionIsStarted():
resourceTuxDriver.closeMouth()
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn