Author: remi
Date: 2009-07-24 14:05:26 +0200 (Fri, 24 Jul 2009)
New Revision: 5165

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/resources/01_drivers/01_resourceTuxOSL.py
Log:
* Play an attitune when the system is ready

Modified: 
software_suite_v3/smart-core/smart-server/trunk/resources/01_drivers/01_resourceTuxOSL.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/resources/01_drivers/01_resourceTuxOSL.py
   2009-07-24 11:59:43 UTC (rev 5164)
+++ 
software_suite_v3/smart-core/smart-server/trunk/resources/01_drivers/01_resourceTuxOSL.py
   2009-07-24 12:05:26 UTC (rev 5165)
@@ -95,19 +95,23 @@
         def startTuxOsl():
             self.__tuxOSL.Start("Acapela")
             time.sleep(0.5)
+            resourceTuxDriver.ledsBlink("LED_BOTH", 100, 0.5)
             self.__initializeStatesInEventsHandler()
-            time.sleep(3.0)
+            time.sleep(1.5)
             # Load first voice
             pitch = resourceUsers.getCurrentUserConfiguration()['pitch']
             firstLocutor = 
resourceUsers.getCurrentUserConfiguration()['locutor1']
             self.ttsSpeak(" ", firstLocutor, pitch)
-            time.sleep(3.0)
+            time.sleep(1.5)
             # Load second voice
             secondLocutor = 
resourceUsers.getCurrentUserConfiguration()['locutor2']
             self.ttsSpeak(" ", secondLocutor, pitch)
-            time.sleep(3.0)
+            time.sleep(1.5)
             # Reference locutors list
             
resourcePluginsServer.getPluginsContainer().setLocutorsList(self.ttsVoicesList())
+            # Play the opening attitune.
+            resourceTuxDriver.ledsOff("LED_BOTH")
+            resourceAttituneManager.playAttitune("TuxBox Ready", 0.0)
             # Start the robot/content interactions
             resourceRobotContentInteractions.startMe()
         if value:


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to