I\'m using eSpeak on Ubuntu and have a Python 2.7 script that prints and speaks a message:
import subprocess text = \'Hello World.\' print text subprocess.ca
Why not use commands.getoutput() instead?
import commands text = "Mario Balotelli" output = 'espeak "%s"' % text print text a = commands.getoutput(output)