Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using speech #2

Open
DarkmatterVale opened this issue Feb 12, 2016 · 1 comment
Open

Error when using speech #2

DarkmatterVale opened this issue Feb 12, 2016 · 1 comment
Labels

Comments

@DarkmatterVale
Copy link
Collaborator

When running the terminal example, after you speak once, the program crashes with the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/speech_recognition/__init__.py", line 414, in threaded_listen
    if running[0]: callback(self, audio)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/speech_recognition/__init__.py", line 95, in __exit__
    if not self.stream.is_stopped():
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyaudio.py", line 543, in is_stopped
    return pa.is_stream_stopped(self._stream)
IOError: [Errno -9988] Stream closed

I am running PyAudio 0.2.9 and OS X 10.10.5. Any ideas why this is happening?

@vincentes
Copy link
Member

You should create an issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants