robro
April 18th, 2011, 08:43 AM
Hello community,
I am trying to make a (rather simple) gui for spd-say (text to speech) and am having some trouble getting it working, here is my code so far:
import os #for running spd-say
import easygui #the gui
speech = easygui.enterbox("Enter something to say:") #making of the gui
os.system('spd-say' , speech) #running spd-say
And here is the output when I run it:
Traceback (most recent call last):
File "test-speech.py", line 6, in <module>
os.system('spd-say' , speech)
TypeError: system() takes exactly 1 argument (2 given)
Thanks for the help :)
I am trying to make a (rather simple) gui for spd-say (text to speech) and am having some trouble getting it working, here is my code so far:
import os #for running spd-say
import easygui #the gui
speech = easygui.enterbox("Enter something to say:") #making of the gui
os.system('spd-say' , speech) #running spd-say
And here is the output when I run it:
Traceback (most recent call last):
File "test-speech.py", line 6, in <module>
os.system('spd-say' , speech)
TypeError: system() takes exactly 1 argument (2 given)
Thanks for the help :)