Skip to content

Instantly share code, notes, and snippets.

View husnain-ahmad's full-sized avatar
💭
I may be slow to respond.

husnain-ahmad

💭
I may be slow to respond.
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()