Skip to main content

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

Project description

Allows your Windows python program to:
  • 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 and listening for all recognizable words.

import speech
import time

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.

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

Resources

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

Project details


Download files

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

Source Distribution

speech-0.4.10.zip (7.2 kB view details)

Uploaded Source

Built Distributions

speech-0.4.10-py2.5.egg (8.0 kB view details)

Uploaded Source

speech-0.4.10-py2.4.egg (8.0 kB view details)

Uploaded Source

File details

Details for the file speech-0.4.10.zip.

File metadata

  • Download URL: speech-0.4.10.zip
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speech-0.4.10.zip
Algorithm Hash digest
SHA256 c49f5c683e26c06c8d70ed76f1ce5e32c17aea8f2e0b7741a04806581c8f28ea
MD5 2c292ad402fffba08375c5056fe68146
BLAKE2b-256 e8892495ce129081ffbc39a97bd55712d83c5af8d885046e8662f45a8542f938

See more details on using hashes here.

File details

Details for the file speech-0.4.10-py2.5.egg.

File metadata

  • Download URL: speech-0.4.10-py2.5.egg
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speech-0.4.10-py2.5.egg
Algorithm Hash digest
SHA256 d30dcea3f38424148b41de8d35cfcdb6e94c8a9c410a49c7af7c57ec135c0094
MD5 11c72277054f8677b38351b55281e240
BLAKE2b-256 f4cf0f8d1f7fd35a9787ee01c0d2ef43a4055bc848fe12a4f90f62544f7eb6e4

See more details on using hashes here.

File details

Details for the file speech-0.4.10-py2.4.egg.

File metadata

  • Download URL: speech-0.4.10-py2.4.egg
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speech-0.4.10-py2.4.egg
Algorithm Hash digest
SHA256 4a3fb558b20632fabee69dd407e0c57ef967fdc39283ea1161481b08d6024bce
MD5 6c4e1a330962ba6395c365fe5a851414
BLAKE2b-256 cc7765309d55f9c7d4179e18ce17a60a30a73ffba54754fa4f3d6294a7219fe8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page