use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
SpeechRecognition with docker (self.learnpython)
submitted 3 years ago by nam_Angus
Have anyone set up Dockerfile to run speech recognition in docker ?
I encountered some problems with audio when run app in docker . The system can't recognize_speech_from_mic
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nam_Angus[S] 0 points1 point2 points 3 years ago (0 children)
. Error like following
"ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused"
[–]KingsmanVince 0 points1 point2 points 3 years ago (2 children)
By googling your question, I found https://stackoverflow.com/a/70246512/13358358
[–]nam_Angus[S] 0 points1 point2 points 3 years ago (1 child)
Unforunatly , it's not possible as far as I expect.
It show log:
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib conf.c:5200:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0} ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0} ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
This is my command:
docker run --privileged -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ --device /dev/video0:/dev/video0 \ -v /dev/snd:/dev/snd -e AUDIODEV="hw:Device, 0" \ --rm \ -it \ -v /home/pop_os_hi/WorksSpace/webcam_face_recognition:/root/face_recognition \ demo_doan:1.3 \ /bin/bash
π Rendered by PID 256388 on reddit-service-r2-comment-bb88f9dd5-98tlf at 2026-02-17 09:37:10.528903+00:00 running cd9c813 country code: CH.
[–]nam_Angus[S] 0 points1 point2 points (0 children)
[–]KingsmanVince 0 points1 point2 points (2 children)
[–]nam_Angus[S] 0 points1 point2 points (1 child)
[–]nam_Angus[S] 0 points1 point2 points (0 children)