I would like to get python pyttsx to read extracts from Wikipedia.
This works but not entirely as it prints out the wiki extracts but it does not says, it just repeat my variable (question). I guess because the variables are not global and only relating to the single functions.
So how do I get pyttsx to read the extract from Wikipedia?
import wikipedia
import pyttsx
question = raw_input('what would you like to know? ')
print wikipedia.summary("question")
engine = pyttsx.init()
engine.say(question)
engine.runAndWait()