Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnish Mangal <anish@activitycentral.com>2012-02-24 13:14:47 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-04-27 10:02:37 (GMT)
commit0a8579aca30540ca2e79b6807009c35c8034e1a7 (patch)
tree8817b370e9d5513356d92540d629efedf22f633c
parentffc319ea007f15340b4db0fb96053da6570b2e21 (diff)
uy#1322: Fix espeak usage in Accessibility>Keyboard
The espeak comman doesnt work well as is in OLPC XO laptops, paticularly in OLPC-XO-1.75. This has been reported [1][2] before as well. This patch fixes the espeak command execution using the suggested fixes. [1] http://wiki.laptop.org/go/Speech_synthesis [2] http://dev.laptop.org/ticket/4002 Authored-by: Esteban Arias <earias@plan.ceibal.edu.uy> Signed-off-by: Anish Mangal <anish@activitycentral.com>
-rw-r--r--src/jarabe/model/virtualkeyboard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jarabe/model/virtualkeyboard.py b/src/jarabe/model/virtualkeyboard.py
index b3e3659..45bc0c3 100644
--- a/src/jarabe/model/virtualkeyboard.py
+++ b/src/jarabe/model/virtualkeyboard.py
@@ -182,4 +182,5 @@ class Teclado:
if txt=="รบ": self.send_string("u")
def hablar(self, texto, s):
- subprocess.call(["espeak", "-p", "30", "-s", s, "-v", "spanish", texto], stdout=subprocess.PIPE)
+ subprocess.call(["espeak","-w", "temp.wav","-p", "30", "-s", s, "-v", "spanish", texto], stdout=subprocess.PIPE)
+ subprocess.call(["aplay", "temp.wav"], stdout=subprocess.PIPE)