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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

speech-0.4.0-py2.5.egg (7.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for speech-0.4.0-py2.5.egg
Algorithm Hash digest
SHA256 8dd0c5fb43269a3c57a5bf29a0296e1fbd30236e4e5e9bc40f8adc9f90f7f5b6
MD5 b2fcada02705b0a93cfbbb206056aa39
BLAKE2b-256 696c3dfb462d9c0140b489305625f51be25ccfd250903b17619ba388a3907d49

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