-
Notifications
You must be signed in to change notification settings - Fork 10
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
[audio_listener-1] ALSA lib error #16
Comments
Seems like you are having trouble running the audio driver |
Hi mhubii, thanks for reaching with me. |
so essentially I have no experience with that sorry. But you need to be able and run this node for grabbing audio (also launched as part of the bringup package): ros2 run audio_listener audio_listener |
Hi I solve the ALSA lib problem. https://stackoverflow.com/questions/65079325/problem-with-alsa-in-speech-recognitionpython-3 |
No worries, maybe try pull the latest changes. You can list nodes in terminal with You can run |
Hi i had the same problem but I managed to find a fix
The main problem was pyaudio was not finding a valid microphone input I ran: to ensure a mic device was even available on my system then ran this in a seperate file to get the necessary data from my mic:
from this i got the
and replaced the bit of code beneath that with this:
Now when i run the node, i get these errors:
but the code manages to publishes to the topic anyway so i guess it works i can suppress the warnings by running:
|
thanks again for providing the solution @TheHassanShahzad! Do you think this is something that can be solved generally? |
i think so. Provided you have a script which can parse out the relevant information fit the microphone and automatically update the parameters in the node, it should be a general solution a problem you may encounter is devices with multiple microphones but i'm not sure how you'd deal with that |
After getting some updates, My whisper can't run and it gives some errors when running
ros2 launch whisper_bringup bringup.launch.py.
And there is no audio_listener node on ros2 node list and the server doesn't run.
how to solve this issue?
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [audio_listener-1]: process started with pid [66674]
[INFO] [component_container_mt-2]: process started with pid [66676]
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.hdmi.0:CARD=1,AES0=4,AES1=130,AES2=0,AES3=2'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM hdmi
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.hdmi.0:CARD=1,AES0=4,AES1=130,AES2=0,AES3=2'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM hdmi
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.modem.0:CARD=1'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=1,DEV=0
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.modem.0:CARD=1'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=1,DEV=0
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.modem.0:CARD=1'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM phoneline
[audio_listener-1] ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.1.pcm.modem.0:CARD=1'
[audio_listener-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[audio_listener-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[audio_listener-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM phoneline
[audio_listener-1] ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[audio_listener-1] ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[audio_listener-1] ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
[audio_listener-1] ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
[audio_listener-1] ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
[audio_listener-1] ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
The text was updated successfully, but these errors were encountered: