Does microphone work on Linode?
Hi, I'm trying to use the microphone but facing some issues.
I used speech_recognition Library and tried to recognize speech input from the microphone.
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refusedALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
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
<speech_recognition.microphone 0x7f5c1f76fda0="" at="" object=""></speech_recognition.microphone>
And when I try to load the module modprobe snd-pcm-os
modprobe: FATAL: Module snd-pcm-os not found
Does Linode support microphone?
3 Replies
I'm not too sure what are you exactly asking. But do you realize that this is a VPS (Virtual Private Server) are you trying to record whats happening on the host side ?
Where do you think this microphone you're trying to use is ?
The microphone is on your PC. The Linode is an instance of a virtual private server that exists probably hundreds of miles away from you.
The Linode cannot access hardware on your PC. Even what you see on your local PC screen is just bits flowing back and forth on a (virtual) wire between your PC and your Linode. It's you're PC that's managing the display/keyboard/mouse…not your Linode.
If a Linode could manage local hardware resources, Linode would have been (successfully) sued into oblivion by now.
-- sw
The following may let you use a Local USB microphone with your Linode. I have not tried it, but I provide it for your consideration:
https://www.linux-magazine.com/Issues/2018/208/Tutorial-USB-IP
If your are locally using a USB microphone on a Mac, this may help:
https://github.com/jwise/pyusbip