Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- python3
- RMSD
- 생물정보학
- portaudio
- pyaudio
- overflowed
- 파이썬
- venn
- 분비단백질
- dtw
- in planta
- transmembrane
- 단백질
- PyMOL
- R
- 3차원구조
- 리간드
- 소리분석
- librosa
- imgaemagick
- python
- python2
- ab initio
- bioinformatics
- protein
- 파이썬3
- 프로그램
- purification
- perl
- 파이몰
Archives
- Today
- Total
박사면뭐해
파이썬3 pyaudio input overflowed 오류/에러 본문
pyaudio 패키지를 사용해서 usb 마이크로 소리를 입력하던 중 Input overflowed 에러가 발생함
Traceback (most recent call last):
File "detect_ring_telegram.py", line 15, in <module>
data = np.fromstring(stream.read(CHUNK),dtype=np.int16)
File "/home/pi/.local/lib/python3.7/site-packages/pyaudio.py", line 608, in read
return pa.read_stream(self._stream, num_frames, exception_on_overflow)
OSError: [Errno -9981] Input overflowed
이 에러의 해결 방법 pyaudio.Stream.read() 함수에서 파라미터 exception_on_overflow를 False로 예외처리를 해주면 됨
data = stream.read(chunk, exception_on_overflow = False)
출처:
https://stackoverflow.com/questions/10733903/pyaudio-input-overflowed
Comments