forked from michaelgundlach/pyspeech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·93 lines (72 loc) · 2.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from setuptools import setup
setup(name='speech',
version='0.5.2',
py_modules=['speech'],
#install_requires=['win32com','pythoncom'],
description="A clean interface to Windows speech recognition " \
"and text-to-speech capabilities.",
long_description="""
------------
speech.py
------------
Allows your Windows python program to:
* get the text spoken by the user when prompted (a la raw_input())
* 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, a simple input, and listening for all
recognizable words.
::
import speech
import time
response = speech.input("Say something, please.")
speech.say("You said " + response)
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. If you use
Windows Vista, you'll need to say "start listening" if Speech
Recognition is not awake.
In addition to easy_installing speech.py, you'll need pywin32
(`for Python 2.5 <http://tinyurl.com/5ezco9>`__ or
`for Python 2.4 <http://tinyurl.com/5uzpox>`__); and if you're on XP,
you'll need the Microsoft Speech kit (installer
`here <http://tinyurl.com/br8ysh>`__).
Resources
=========
* Homepage: http://pyspeech.googlecode.com/
* Source:
- Browse at http://code.google.com/p/pyspeech/source/browse/trunk/
- Get with **svn co http://pyspeech.googlecode.com/svn/trunk/
pyspeech-read-only**
Please let me know if you like or use this module - it would make
my day!
""",
author='Michael Gundlach',
author_email='[email protected]',
url='http://code.google.com/p/pyspeech/',
keywords = "speech recognition text-to-speech text to speech tts "
"voice recognition",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Topic :: Multimedia :: Sound/Audio :: Speech',
'Topic :: Home Automation',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Desktop Environment',
]
)