Author: jerome
Date: 2009-03-16 10:13:28 +0100 (Mon, 16 Mar 2009)
New Revision: 4084
Modified:
software_suite_v2/software/control_center/branches/cpu_memory_optimisations/sources/com/tuxdroid/cc/CcInterface.java
Log:
*Added tts name exception for skype gadget
Modified:
software_suite_v2/software/control_center/branches/cpu_memory_optimisations/sources/com/tuxdroid/cc/CcInterface.java
===================================================================
---
software_suite_v2/software/control_center/branches/cpu_memory_optimisations/sources/com/tuxdroid/cc/CcInterface.java
2009-03-16 08:41:45 UTC (rev 4083)
+++
software_suite_v2/software/control_center/branches/cpu_memory_optimisations/sources/com/tuxdroid/cc/CcInterface.java
2009-03-16 09:13:28 UTC (rev 4084)
@@ -487,6 +487,35 @@
this.jListPlaylists.setSelectedIndex(1);
}
+ if(texte.toLowerCase().contains("skype"))
+ {
+ String skype;
+ String lg = CcCommons.settings.getLanguage();
+ if(lg.equals("en"))
+ {
+ skype = "Skeyepe";
+ }
+ else if(lg.equals("fr"))
+ {
+ skype = "skaype";
+ }
+
+ else if(lg.equals("nl"))
+ {
+ skype = "skaïpe";
+ }
+ else if(lg.equals("sp"))
+ {
+ skype = "ckaheip";
+ }
+ else
+ {
+ skype = "skype";
+ }
+
+ texte = texte.toLowerCase().replace("skype", skype);
+ }
+
CcCommons.tux.tts.speakAsync(texte);
}
@@ -2981,4 +3010,4 @@
CcCommons.tux.tts.stop();
}
}
-}
\ No newline at end of file
+}
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn