Read the statement by Michael Teeuw here.
MM + Alexa + Logitech C170?
-
@mrprincehd
I think most of the cases, Your ALSA setup (or If you use, PulseAudio) might be wrong. Make that mic to be the default input of your system, or configure your Alexa module to point the proper device id.ps. Also me once used Logitech Webcam as mic and camera. PS3Eye also worked in my experience.
-
pi@raspberrypi:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 pi@raspberrypi:~ $ arecord -l **** List of CAPTURE Hardware Devices **** card 1: C170 [Webcam C170], device 0: USB Audio [USB Audio] Subdevices: 1/1
Here is my current setup; as for my asoundrc,
pcm.!default { type hw card 0 } ctl.!default { type hw card 1 }
From my understanding, c from ctl is for capture so I tried selecting my webcam. However, whenever I ran this code – this shows up
arecord --format cd --duration 15 --channels 1 test.wav -> arecord: main:788: audio open error: No such file or directory
Of course I can resolve this by changing my asoundrc, pcm and ctl to 1 and this error would not show up however, whenever I try playing the recording, I am not hearing anything.
My end goal is to have my camera as my audio input and the audio output just the default which in my case is my monitor speakers.
-
@mrprincehd
See this.
https://gist.github.com/AfzalivE/54214bf437ca1775b5b8e7934cc137db
It’s for PS3Eye but you can get the idea.Added
pcm.!default { type asym playback.pcm { type hw card 0 } capture.pcm { type hw card 1 } } ctl.!default { type hw card 0 }
I think this might be a point.
-
yeap i told you @mrprincehd look at that youtube from Sid
-
all good guys, solved it. Thanks all
-
@mrprincehd said in MM + Alexa + Logitech C170?:
all good guys, solved it. Thanks all
Please post a detailed explanation of how you solved this for the next person that may encounter this issue.
-
Following the instructions from MMM Awesome Alexa by dolanmiu regarding the audio setup, on my asoundrc if I remember correctly, I used the following commands and this somehow solved my problem.
pcm.!default { type asym playback.pcm "plughw:0" capture.pcm "plughw:1" }