Pi 4b
I have followed your video to the letter. I just got a new usb mic and set it to the correct 192000 (this is a test for proof of concept), but my speakers and mic don't work anywhere on my computer. It all draws down to my alsa.conf. here are the errors showing up. The only change I made in Alsa was the cards to a 1.
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
Expression 'alsa_snd_config_update()' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1354
Expression 'BuildDeviceList( alsaHostApi )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 767
Traceback (most recent call last):
File "visualization.py", line 370, in
I plan on developing this into a large project in a Jamaican rum bar that dances to the Reggae music pumped continuously. eventually I will dumb down the mic, but am using a studio mic for now.
Did you change asound.conf to use card 1 as well? It's the first file in this section: Audio Device Config
Yes
On Mon, May 4, 2020, 09:04 Nazmus Nasir [email protected] wrote:
Did you change asound.conf to use card 1 as well? It's the first file in this section: Audio Device Config https://github.com/naztronaut/dancyPi-audio-reactive-led#audio-device-configuration
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naztronaut/dancyPi-audio-reactive-led/issues/7#issuecomment-623484135, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBTMPVFXMAEYVNMZXQXDFTRP3DQTANCNFSM4MYPC36A .
I don't have a Pi 4 that I can test this on right now but I'm wondering if the cards are different. Try this:
cat /proc/asound/cards
Look at the number for the Card and put that into the asound.conf and alsa.conf files.
I bought a Pi3B+ and took the micro SD from the Pi4 and installed it in the Pi3. I then tried running without changing any values. Failed just like before. I rand the "Cat" command and found that ALSA was device 2. I went into asound.conf and Alsa conf. and changed everything you suggested to 2 This is the errors and what I could copy and paste
pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo python visualization.py scroll
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:1396:(parse_def) 1 does not exists
ALSA lib conf.c:1887:(_snd_config_load_with_include) toplevel:109:1:No such file or directory
ALSA lib conf.c:4016:(snd_config_update_r) /usr/share/alsa/alsa.conf may be old or corrupted: consider to remove or fix it
Expression 'alsa_snd_config_update()' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1354
Expression 'BuildDeviceList( alsaHostApi )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 767
Traceback (most recent call last):
File "visualization.py", line 370, in
microphone.start_stream(microphone_update)
File "/home/pi/dancyPi-audio-reactive-led/python/microphone.py", line 8, in start_stream
p = pyaudio.PyAudio()
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 677, in init
pa.initialize()
IOError: [Errno -9999] Unanticipated host error
pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ sudo nano /usr/share//alsa/alsa.conf
pi@raspberrypi:~/dancyPi-audio-reactive-led/python $ cat /proc/asound/cards
0 [MicroII ]: USB-Audio - Audio Advantage MicroII
C-Media INC. Audio Advantage MicroII at usb-3f980000.usb-1.3, full speed
1 [USB ]: USB-Audio - Realtek Audio USB
Generic Realtek Audio USB at usb-3f980000.usb-1.2, high speed
2 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
bcm2835 ALSA
asound.conf
GNU nano 3.2 /etc/asound.conf
pcm.!default { type hw card 2 } ctl.!default { type hw card 2 }
I'm a little confused about the crossed-out part of your response. Is the crossed out part the error you're getting or is that the error that disappeared?
Instead of taking out the SD card as-is and putting it into your Pi3, can you reinstall everything? Or do you have another spare SD card to try it on?
All issues like this point to it being a configuration issue so I'm sure we can figure it out soon enough. Just have to try a lot of troubleshooting steps.
I have time to start over. The crossed out was just a cut and pasted. Think this was github thing.
Was setting alsa and asound to 2 correct?
On Tue, May 12, 2020, 09:04 Nazmus Nasir [email protected] wrote:
I'm a little confused about the crossed-out part of your response. Is the crossed out part the error you're getting or is that the error that disappeared?
Instead of taking out the SD card as-is and putting it into your Pi3, can you reinstall everything? Or do you have another spare SD card to try it on?
All issues like this point to it being a configuration issue so I'm sure we can figure it out soon enough. Just have to try a lot of troubleshooting steps.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naztronaut/dancyPi-audio-reactive-led/issues/7#issuecomment-627366614, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBTMPSTIOGT6OQVQSSU3G3RRFJPRANCNFSM4MYPC36A .
Thanks! I think I just got confused about how to read that.
The output shows that you have 2 USB devices, one at 0 and one at 1. If you already had it at 1 and that didn't work and 2 didn't work, try 0. That seems to be your C-Media Microll Mic.
Thank you Ill try before i start from scratch
On Tue, May 12, 2020, 09:16 Nazmus Nasir [email protected] wrote:
Thanks! I think I just got confused about how to read that.
The output shows that you have 2 USB devices, one at 0 and one at 1. If you already had it at 1 and that didn't work and 2 didn't work, try 0. That seems to be your C-Media Microll Mic.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naztronaut/dancyPi-audio-reactive-led/issues/7#issuecomment-627373890, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBTMPUZH7KKQKYZ3KRK2RTRRFK5HANCNFSM4MYPC36A .
I'm not sure if you're still having an issue but I helped someone else recently by suggesting that they turn off the Pi, plug in the mic, then turn it back on. The Pi may have some trouble reading new devices if they're plugged in while the Pi is already on.
I'm also redoing my tutorial from scratch now. I'll try and cover as much as I can and update the documentation. Thanks!
Yes still issue I see it on 3 and 4
On Mon, Jun 22, 2020, 00:00 Nazmus Nasir [email protected] wrote:
I'm not sure if you're still having an issue but I helped someone else recently by suggesting that they turn off the Pi, plug in the mic, then turn it back on. The Pi may have some trouble reading new devices if they're plugged in while the Pi is already on.
I'm also redoing my tutorial from scratch now. I'll try and cover as much as I can and update the documentation. Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naztronaut/dancyPi-audio-reactive-led/issues/7#issuecomment-647277493, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBTMPTZUHDD4JGCOBUBWGLRX3QPRANCNFSM4MYPC36A .
I just updated the repo yesterday and posted a new tutorial. I tried automating as much of it as I can. Let me know if that helps.
Here's the written tutorial: https://www.easyprogramming.net/raspberrypi/audio_reactive_led.php And video tutorial: https://www.youtube.com/watch?v=7YLF-N0596I