Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-08-30 15:23:07 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-08-30 15:23:07 (GMT)
commit186d19b9ca5e095c2a42decdc0591ec16cca1b99 (patch)
treee9f604fe6e58297d24c0cca90053636e903ce535
parentba3e81db4ac2c09829dbee682e754450196049dd (diff)
AU costumizationHEADmaster
-rw-r--r--activity/activity.info2
-rw-r--r--wordsactivity.py9
2 files changed, 10 insertions, 1 deletions
diff --git a/activity/activity.info b/activity/activity.info
index 4ce667d..6ba84c2 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -3,6 +3,6 @@ name = Words
bundle_id = org.laptop.Words
exec = sugar-activity wordsactivity.WordsActivity
icon = activity-icon
-activity_version = 11
+activity_version = 110
show_launcher = yes
license = GPLv3+
diff --git a/wordsactivity.py b/wordsactivity.py
index afa7369..0b53a27 100644
--- a/wordsactivity.py
+++ b/wordsactivity.py
@@ -206,6 +206,15 @@ class WordsActivity(activity.Activity):
subprocess.call(["aplay", tmpfile])
os.unlink(tmpfile)
+ #AU costumization
+ if lang == "english":
+ lang = "english_rp"
+ tmpfile = "/tmp/something.wav"
+ subprocess.call(["espeak", text, "-w", tmpfile, "-v", lang])
+ subprocess.call(["aplay", tmpfile])
+ os.unlink(tmpfile)
+
+
def lang1combo_cb(self, combo):
pass