Skip to main content
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!

Metadata

Release files for speech 0.4.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for speech 0.4.9
File Interpreter ABI Platform
speech-0.4.9-py2.5.egg Legacy Egg format - - Details
speech-0.4.9-py2.4.egg Legacy Egg format - - Details

Total release size: 16.0 kB

Release files / speech-0.4.9-py2.5.egg

Download URL speech-0.4.9-py2.5.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
981e6f6326a21bec4c934cf19d326b9964385ffe611e27d9d057d76b6b0cec98
BLAKE2b-256 checksum
How to use checksums
031fa9cc918dcfa6ee6b2a20983332fa33aa4c967d9c4dbf1957abb83f345f6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / speech-0.4.9-py2.4.egg

Download URL speech-0.4.9-py2.4.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
f94270c119b7bc4b87fa026baa200887c49fe489ef24c67cf3956f41b2bd6bab
BLAKE2b-256 checksum
How to use checksums
bbba1beb13b1cf106526bfb735227ad902439ecddc8f3c8d7a8ccb3f21d5576a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.2

3 release files

0.5.1

3 release files

0.5.0

3 release files

This release

0.4.9 This release

2 release files

0.4.8

2 release files

0.4.7

3 release files

0.4.6

3 release files

0.4.5

3 release files

0.4.4

3 release files

0.4.3

3 release files

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.5

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page