speech 0.5.2
A clean interface to Windows speech recognition and text-to-speech capabilities.
- 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
- Homepage: http://pyspeech.googlecode.com/
- Source:
- Browse at http://code.google.com/p/pyspeech/source/browse/trunk/
- Get with svn co http://pyspeech.googlecode.com/svn/trunk/ pyspeech-read-only
Please let me know if you like or use this module - it would make my day!
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| speech-0.5.2-py2.4.egg (md5) | Python Egg | 2.4 | 2009-02-27 | 8KB | 1131 |
| speech-0.5.2-py2.5.egg (md5) | Python Egg | 2.5 | 2009-02-27 | 8KB | 3256 |
| speech-0.5.2.tar.gz (md5) | Source | 2009-02-27 | 17KB | 4125 | |
- Author: Michael Gundlach
- Home Page: http://code.google.com/p/pyspeech/
- Keywords: speech recognition text-to-speech text to speech tts voice recognition
-
Categories
- Development Status :: 5 - Production/Stable
- Environment :: Win32 (MS Windows)
- Intended Audience :: Developers
- License :: OSI Approved :: Apache Software License
- Operating System :: Microsoft :: Windows
- Programming Language :: Python
- Topic :: Desktop Environment
- Topic :: Home Automation
- Topic :: Multimedia :: Sound/Audio :: Speech
- Topic :: Scientific/Engineering :: Human Machine Interfaces
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: gundlach
- DOAP record: speech-0.5.2.xml
