Hello,
I ran in the same problem as servas089 (He solve his problem with [https://raspberrypi.stackexchange.com/questions/47045/hcitool-scan-says-no-such-device]).
First reading fine (read the dB(A) correctly) then Error Input overflowed follow by Error stackhoverflow
(1) Error recording: [Errno -9981] Input overflowed
(2) Error recording: [Errno -9988] Stream closed
(3) Error recording: [Errno -9988] Stream closed
Traceback (most recent call last):
File "/home/pi/Bureau/spl-meter-with-RPi-master/spl_meter.py", line 116, in
listen()
File "/home/pi/Bureau/spl-meter-with-RPi-master/spl_meter.py", line 91, in listen
print(" (%d) Error recording: %s" % (error_count, e))
File "/usr/lib/python2.7/idlelib/PyShell.py", line 1356, in write
return self.shell.write(s, self.tags)
KeyboardInterrupt
The code is not tweaked, on Pi 2 B. I try a lot of Chunk and Rate number with no sucess.
There is a USB microphone plug to the Pi (the first reading varie according to the noise, so I assume the microphone is not faulty ?).
I really a # noob at Pi and programming but good in Acoustics.
I installed all the prerequisite (pyaudio, selenium, etc) but I don't know if I must take the new one or the prerequisite with theyre version number.
I am very sorry to bother you, I think it's my poor knowledge of the programming and Pi stuff that lead me to this point.
It seem that servas089 as a Pi 3, let me know if you think that I must buy a Pi 3 instead of a Pi 2.
All help will be very appreciated
Yannick
For more information there is the Python consol output:
====== RESTART: /home/pi/Bureau/spl-meter-with-RPi-master/spl_meter.py ======
Listening
A-weighted: +24.10 dB
update_max_if_new_is_larger_than_max called
max observed
(1) Error recording: [Errno -9981] Input overflowed
(2) Error recording: [Errno -9988] Stream closed
(3) Error recording: [Errno -9988] Stream closed
Traceback (most recent call last):
File "/home/pi/Bureau/spl-meter-with-RPi-master/spl_meter.py", line 116, in
listen()
File "/home/pi/Bureau/spl-meter-with-RPi-master/spl_meter.py", line 91, in listen
print(" (%d) Error recording: %s" % (error_count, e))
File "/usr/lib/python2.7/idlelib/PyShell.py", line 1356, in write
return self.shell.write(s, self.tags)
KeyboardInterrupt
And for more information
Pi 2B
pi@raspberrypi:~ $ cat /proc/asound/cards
0 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
1 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-3f980000.usb-1.5, full spe