Skip to content

Instantly share code, notes, and snippets.

View GGulati's full-sized avatar

Gurwinder Singh Gulati GGulati

View GitHub Profile
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()