# Incorporating conversation system resulted to ALSA lib error

**URL:** <https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904>\
**Category:** General\
**Created:** [March 3, 2024, 2:35am UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904 "2024-03-03T02:35:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goose](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/goose/32/478_2.png) [@goose](https://forum.sunfounder.com/u/goose)\
**Post date:** [March 3, 2024, 2:35am UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904/1 "2024-03-03T02:35:42Z")

</div>

anyone knows how to fix this error? i have been trying to figure it out since 5 days ago. I am incorporating to do a conversation system with the Picar-x bot, which i installed a microphone into. when i run my code sudo python3 conversation-bot.py, it shows that ‘no module as speech-recognition’ even though i have installed it. when i run python3 conversation-bot.py, this weird long error that keeps on going showed up. ALSA lib confmisc.c:1281:(snd\_func\_refer) Unable to find definition ‘cards.bcm2835\_h [front.o: CARD=0’  
ALSA lib conf.c:4745: (_snd\_config\_evaluate) function snd\_func\_refer returned error: e or directory  
ALSA lib conf.c:5233: (snd_ config\_ expand) Evaluate error: No such file or directory  
ALSA lib pm.c: 2660: (snd\_pem\_open\_noupdate) Unknown PCM front  
ALSA lib pem.c:2660: (snd\_pcm\_open\_noupdate) Unknown PCM cards.pm.rear  
ALSA lib pm.c: 2660: (snd\_pcm\_open\_noupdate) Unknown PCM cards. pem.center\_lfe  
saalDuthor

Anyone knows how to fix this?

---

<div class="post-metadata">

**Author:** ![goose](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/goose/32/478_2.png) [@goose](https://forum.sunfounder.com/u/goose)\
**Post date:** [March 3, 2024, 2:39am UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904/2 "2024-03-03T02:39:20Z")

</div>

i also did nano asound.conf. which i changed the card to the device. it didnt work

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 5, 2024, 9:28am UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904/3 "2024-03-05T09:28:54Z")

</div>

It is recommended that you use the Raspberry Pi Terminal command line and use the commands to run the Python scripts.

1. What about the error that occurs when you run the example. If you wrote the program yourself, please send us the program file, so that we can analyze and solve the problem.

2. Please send us a screenshot of the steps you took to run the example, so that we can reproduce it and solve the problem.

---

<div class="post-metadata">

**Author:** ![goose](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/goose/32/478_2.png) [@goose](https://forum.sunfounder.com/u/goose)\
**Post date:** [March 7, 2024, 2:19pm UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904/4 "2024-03-07T14:19:31Z")

</div>

how can i send the program to you privately? also, i ran the file in the terminal itself. by “cd picar-x/example” next “python3 conversation-bot.py”

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 8, 2024, 8:17am UTC](https://forum.sunfounder.com/t/incorporating-conversation-system-resulted-to-alsa-lib-error/904/5 "2024-03-08T08:17:56Z")

</div>

You can send the code package to this email address（hello@sunfounder.com） and I’ll forward it to a technician to reproduce and test the issue.
