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 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file speech-0.5.0.zip
.
File metadata
- Download URL: speech-0.5.0.zip
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac17058031e7239e2f2e083fae85a84228000cb6e4514cb677a959feb925211a |
|
MD5 | 1e0cc42c81d533941a383e58ae6a0d9a |
|
BLAKE2b-256 | f28dfd571bf0bb72bd3e4d232be90c9d3d5be782ce52adf1380fa18f23704440 |
File details
Details for the file speech-0.5.0-py2.5.egg
.
File metadata
- Download URL: speech-0.5.0-py2.5.egg
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eba0fba55bfd667120adca35064ea13f4ef0d9227ccc233c0165eb99edb718a |
|
MD5 | a1bdf8e31112efdf881cc67a4390fb7c |
|
BLAKE2b-256 | 3fad6770f87cd92e1c8b995e86b4fb69208edbf8e5f8b1ccf45ddf20fe4284a5 |
File details
Details for the file speech-0.5.0-py2.4.egg
.
File metadata
- Download URL: speech-0.5.0-py2.4.egg
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11785bb52938a46ebc2fb24aa71fab2e7fa11780caa9da50a6181d7d21f6e46b |
|
MD5 | bbb9e40cbff0a8766fcf86c9cb4b22be |
|
BLAKE2b-256 | bbf8ee2c8274047852e42efd31c1e04d290d5951db1c6d8973fc49173833aed8 |