speech.py
- 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!
Metadata
Release files for speech 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| speech-0.5.2.tar.gz | 18.3 kB | Without provenance | Details for speech-0.5.2.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| speech-0.5.2-py2.5.egg | Legacy Egg format | - | - | Details for speech-0.5.2-py2.5.egg |
| speech-0.5.2-py2.4.egg | Legacy Egg format | - | - | Details for speech-0.5.2-py2.4.egg |
Total release size: 35.9 kB
Release files / speech-0.5.2.tar.gz
| Download URL | speech-0.5.2.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62d2a714d4c6e971809c7ec902df294ded956ce4a9f6a908cf9cc705bab9f7a7
|
|
BLAKE2b-256 checksum How to use checksums |
0fab12dbcc8ad860546b7aaef6c367ffa639cc81007540e488eb92cf22639f86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / speech-0.5.2-py2.5.egg
| Download URL | speech-0.5.2-py2.5.egg |
|---|---|
| Size | 8.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1636329b2d0699cd09954d3c40cd9f71ab707e9d91134caba525ebd4b0b74038
|
|
BLAKE2b-256 checksum How to use checksums |
ffb29940ae2f70094ba3e6d202654de2cc148479067427430bb7d7aa9a6beee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / speech-0.5.2-py2.4.egg
| Download URL | speech-0.5.2-py2.4.egg |
|---|---|
| Size | 8.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a04ca718c1535b5727b50999b2683cc76b91677f9fea14601805d033ecdf26d8
|
|
BLAKE2b-256 checksum How to use checksums |
7e8a8c5a3f81585c63e255db17133ce74dc6a2d2d2a3af3ec1768eda790ba0c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for speech 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.