skip to navigation
skip to content

speech 0.5.1

A clean interface to Windows speech recognition and text-to-speech capabilities.

Latest Version: 0.5.2

Allows your Windows python program to:
  • get the text spoken by the user when prompted (a la raw_input())
  • execute a callback when certain phrases are heard
  • execute a callback when any understandable text is heard
  • have different callbacks for different groups of phrases
  • convert text to speech.


Showing speaking out loud, a simple input, and listening for all recognizable words.

import speech
import time

response = speech.input("Say something, please.")
speech.say("You said " + response)

def callback(phrase, listener):
    if phrase == "goodbye":

listener = speech.listenforanything(callback)
while listener.islistening():


Requires Windows XP or Vista, and Python 2.4 or 2.5. If you use Windows Vista, you’ll need to say “start listening” if Speech Recognition is not awake.

In addition to easy_installing, you’ll need pywin32 (for Python 2.5 or for Python 2.4) and the Microsoft Speech kit (installer here).


Please let me know if you like or use this module - it would make my day!

File Type Py Version Uploaded on Size
speech-0.5.1-py2.4.egg (md5) Python Egg 2.4 2008-08-15 8KB
speech-0.5.1-py2.5.egg (md5) Python Egg 2.5 2008-08-15 8KB (md5) Source 2008-08-15 29KB