webdino / enocean-console-demo-server

0 stars 0 forks source link

数分働かしているとaudioのデータが取得できなくなる #4

Closed epli2 closed 6 years ago

epli2 commented 6 years ago

起動して数分後に以下のエラーでaudioのデータの取得が止まります。

Exception in thread th:
Traceback (most recent call last):
  File "/Users/ryo/.pyenv/versions/anaconda3-5.0.0/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/Users/ryo/.pyenv/versions/anaconda3-5.0.0/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ryo/works/enocean-console-demo-server/audio.py", line 25, in getstream
    data = stream.read(FRAMES_PER_BUFFER)
  File "/Users/ryo/.pyenv/versions/anaconda3-5.0.0/lib/python3.6/site-packages/pyaudio.py", line 608, in read
    return pa.read_stream(self._stream, num_frames, exception_on_overflow)
OSError: [Errno -9981] Input overflowed