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 and Python 2.5.

In addition to easy_installing speech.py, you’ll need pywin32 (installer here) 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.3.zip (7.1 kB view details)

Uploaded Source

Built Distributions

speech-0.4.3-py2.5.egg (7.9 kB view details)

Uploaded Source

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

Uploaded Source

File details

Details for the file speech-0.4.3.zip.

File metadata

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

File hashes

Hashes for speech-0.4.3.zip
Algorithm Hash digest
SHA256 4e38d34ed7dda375318666363a73dcfea4813e1fba86acbfd9abe727b5002a45
MD5 bb732c6090de2fe2e550ef3cb761c931
BLAKE2b-256 317418e72ca95641623e3d222b623cf5e3f845abf807c4ae660e952363f6f12c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for speech-0.4.3-py2.5.egg
Algorithm Hash digest
SHA256 96456709ef31e2e5563f7a0ea1706e1b17e32a90af62131da7f12a8e5ff9b0ac
MD5 9b175fee4262a507cd76855f60a8e288
BLAKE2b-256 36ac5f077683ebf88e1bcc7357bb88a81150daca7ab12b08e74f2d6e3a170d67

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for speech-0.4.3-py2.4.egg
Algorithm Hash digest
SHA256 c58a38ebc4020e54681a6a377f43a3e985aad9292e9135635d0ff6e13ce027fc
MD5 1101c5672330e5a417458bc4783d974b
BLAKE2b-256 000415e1bf62ff91ca6566dff4316a08f11205b66f3e96890ad709d59786cbae

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