[Tutor] Python Speech

Christopher King g.nius.ck at gmail.com
Thu Aug 25 03:53:42 CEST 2011


I got the speech module to work actually, except for input. Only say works.
Here's a traceback on speech.input.
Traceback (most recent call last):
  File "C:\Python26\test.py", line 6, in <module>
    print speech.input()
  File "C:\Python26\speech.py", line 162, in input
    listener = listenforanything(response)
  File "C:\Python26\speech.py", line 193, in listenforanything
    return _startlistening(None, callback)
  File "C:\Python26\speech.py", line 222, in _startlistening
    context = _recognizer.CreateRecoContext()
  File
"C:\Python26\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-9602-00
C04F8EE628x0x5x0.py", line 2457, in CreateRecoContext
    ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0,
-214722
1164), None)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110824/f3b9035a/attachment.html>


More information about the Tutor mailing list