Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/areebbeigh/winspeech
Speech recognition and synthesis library for Windows - Python 2 and 3.
https://github.com/areebbeigh/winspeech
sapi speech-recognition synthesis-library windows
Last synced: about 2 months ago
JSON representation
Speech recognition and synthesis library for Windows - Python 2 and 3.
- Host: GitHub
- URL: https://github.com/areebbeigh/winspeech
- Owner: areebbeigh
- License: apache-2.0
- Created: 2016-11-05T07:17:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T18:18:26.000Z (over 7 years ago)
- Last Synced: 2024-10-02T02:52:48.441Z (3 months ago)
- Topics: sapi, speech-recognition, synthesis-library, windows
- Language: Python
- Homepage: https://pypi.python.org/pypi/winspeech
- Size: 44.9 KB
- Stars: 12
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winspeech
Speech recognition and synthesis library for Windows - Python 2 and 3.This is a simple Python library based on the abandoned PySpeech library for Python 2. Requires pywin32.
**PyPI:** https://pypi.python.org/pypi/winspeech
**Doc:** https://pythonhosted.org/winspeech/## Installation
`> pip install winspeech`## Example
```
# Say anything you type, and write anything you say.
# Stops when you say "turn off" or type "turn off".import winspeech
import sys# Start an in-process recognizer. Don't want the shared one with built-in windows commands.
winspeech.initialize_recognizer(winspeech.INPROC_RECOGNIZER)def callback(phrase, listener):
print(": %s" % phrase)
if phrase == "turn off":
winspeech.say("Goodbye.")
listener.stop_listening()
sys.exit()print("Anything you type, speech will say back.")
print("Anything you say, speech will print out.")
print("Say or type 'turn off' to quit.")listener = winspeech.listen_for_anything(callback)
while listener.is_listening():
if sys.version_info.major == 3:
text = input("> ")
else:
text = raw_input("> ")
if text == "turn off":
listener.stop_listening()
sys.exit()
else:
winspeech.say(text)```
## Contributing
Feel free to fork the repo and make any improvements/additions. I love pull requests.## Additional Info
**Developer:** Areeb Beigh
**GitHub Repo:** https://github.com/areebbeigh/winspeech