Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Abente Lahaye <tch@sugarlabs.org>2013-01-12 21:53:51 (GMT)
committer Martin Abente Lahaye <tch@sugarlabs.org>2013-01-12 21:53:51 (GMT)
commit584f1c03826c8fb3c85dc9da620abd5b5f1c111a (patch)
tree076a507506d7d966fd221b7b0644b82d69514995
parent3e1436ffffe14c8dbceb47f6613cacdc0dfc94e2 (diff)
Text-to-Speech example
-rwxr-xr-x005-text-to-speech/example.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/005-text-to-speech/example.py b/005-text-to-speech/example.py
new file mode 100755
index 0000000..4dfe779
--- /dev/null
+++ b/005-text-to-speech/example.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+from subprocess import Popen
+
+
+def say(text):
+ Popen(['espeak', '-v', 'es', text])
+
+
+def main():
+ say('Hola tch')
+
+
+if __name__ == "__main__":
+ main()