michaelgundlach / pyspeech

NO LONGER MAINTAINED. Try Python Dragonfly instead.
28 stars 24 forks source link

Listening won't work in fresh install #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install python 2.5
2. Follow the installation instruction 'Type easy_install speech at the 
Windows command prompt. (If that doesn't work, download and run this Python 
script to install easy_install, then try again from C:\<Your python 
directory>\Scripts\ .)

If you don't already have it, you'll also need pywin32 (for Python 2.5 or 
for Python 2.4); and if you're on XP, you'll need the Microsoft Speech kit 
(installer here).'
3. Try to run one of the demo scripts.

What is the expected output? What do you see instead?
The expected output is a working script ( example scripts from the home 
page http://code.google.com/p/pyspeech/)

What I get instead is this:
Traceback (most recent call last):
  File "C:\Project\Test\speech1.py", line 4, in <module>
    phrase = speech.input()
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 16
2, in input
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 19
3, in listenforanything
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 22
2, in _startlistening
  File "C:\Python25\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-
9602-00
C04F8EE628x0x5x3.py", line 2638, in CreateRecoContext
    ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
pywintypes.com_error: (-2147352567, 'Er is een uitzondering opgetreden.', 
(0, No
ne, None, None, 0, -2147200905), None)

What version of the product are you using? On what operating system?
I'm using vista SP1 and Python 2.5. In 2.6 i got all most the same 
exceptions.

Please provide any additional information below.
The vista instance is a fresh install. 

Original issue reported on code.google.com by RoelVeld...@gmail.com on 6 Jun 2010 at 5:03

GoogleCodeExporter commented 9 years ago
I'm pretty sure this is because Vista's speech engine doesn't support your 
language.  Sorry!  Check out http://code.google.com/p/dragonfly/ in case that 
works for you.

Original comment by gundl...@gmail.com on 10 Jun 2010 at 10:52