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.6.tar.gz (4.4 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

File details

Details for the file speech-0.4.6.tar.gz.

File metadata

  • Download URL: speech-0.4.6.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speech-0.4.6.tar.gz
Algorithm Hash digest
SHA256 e83fba144d73a0567a723f2581ffe425876f314da502157be36f632444a489fe
MD5 060328a27f3f159bafe5151b7e02c7d7
BLAKE2b-256 b03cd5fa83903b0083de77213ee4f00a4fac3392fd1c3967f1e1b1bb0266ceaf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for speech-0.4.6-py2.5.egg
Algorithm Hash digest
SHA256 f05979ff8b05fef554c2ac59ac63c87db1e5fef23a36cb50d54fdf2229e96f50
MD5 41808e8a6cd7f20fb5a6b8ee4963b897
BLAKE2b-256 12cfd6096b0e691460129778a7f2406b79d82013c767cd54957612300c07a284

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for speech-0.4.6-py2.4.egg
Algorithm Hash digest
SHA256 3a114c9c051b79ef92adab0909d8607d2dc76eb96eb0a93e5171ae0ff6458100
MD5 6731bb925d8fe527a4e47cf11be2c9ca
BLAKE2b-256 e4836299939d1f11164d51a8d59562f5e25584f0ce17aec1cc82a52dec5b2b80

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