This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description
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.

Example

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.stoplistening()
    speech.say(phrase)

listener = speech.listenforanything(callback)
while listener.islistening():
    time.sleep(.5)

Requirements

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 speech.py, you’ll need pywin32 (for Python 2.5 or for Python 2.4); and if you’re on XP, you’ll need the Microsoft Speech kit (installer here).

Resources

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

Release History

Release History

This version
History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.11

History Node

0.4.10

History Node

0.4.9

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.5

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
speech-0.5.2-py2.4.egg (8.9 kB) Copy SHA256 Checksum SHA256 2.4 Egg Feb 27, 2009
speech-0.5.2-py2.5.egg (8.8 kB) Copy SHA256 Checksum SHA256 2.5 Egg Feb 27, 2009
speech-0.5.2.tar.gz (18.3 kB) Copy SHA256 Checksum SHA256 Source Feb 27, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting