UNSOLVED Raspberry glitch? USB camera mic stopped recording
Hi everybody , I think that I screwed up my raspberry or something.
Ive plugged a USB camera to use it as a camera AND a microphone , and I use my monitor as an audio output through the HDMI. Ive tested the mic on the camera , (with the arecord --format=S16_LE --duration=5 …etc) recorded some audios so I could make sure that it was working , everything went fine , the sound was coming out of the monitor like it should as well. So ive installed the awesomealexa module to my magicmirror , I did everything right , but when the magic mirror opened it said a very brief -Hello but nothing else , it looked like it was recognizing my mic because whenever I said -ALEXA- the icon would lit up . but it wasnt answering me or anything. So heres where I think I screwed up . probably the problem was with the alexa module and Ive shouldve reinstalled but I dont think I thought about it at the time…so Ive started to check on the internet to fix the mic or the output device and set the mic and the HDMI as the standard output with the .asoundrc and changing the alsa.conf . And now my mic is not recording anymore , its still getting recognized on the arecord -l . but now whenever I try to record something , even when Im setting the arecord duration to 5 seconds , it doesnt stop recording like it should , its stays there forever . so I dont know if Its glitched or if I did something stupid. Can someone please help me . I really dont want to restore my raspberry to factory reset…Ive made so many changes already into the magicmirror module it would be awful to lose evertyhing.
@floydrexdime Alexa is a pain .
unplug the mic and plug it back in. I see that sometimes
sadly I don’t know how the a module plays the audio sent from the avs server
( looking at the code it does something html with a file called ‘output.mpeg’. I have an implementation on another platform, and use the same idea with .wav files))
this is the audio setup info from the aa
@sdetweil Thanks for the reply!!
Ive tried to unplug and plug the webcam already but no luck . And I have tried this audio setup link when I was doing the installation , everything was working before I started to mess up with the coding. The first time I followed the audio-setup link the mic and the HDMI worked fine. I recorded some audios to test it and it was perfect . My main issue now is that after the Alexa didnt worked on my magic mirror Ive tried to mess with the audio coding following tutorials to set the mic and the HDMI to primary, and now the mic its not working anymore ,now when I try to test the mic with the audio-setup link command -arecord --format cd --duration 15 --channels 1 test.wav- the recording doesnt stop even after 15 seconds . it keeps recording and the command screen doesnt change so I can use the command to play the audio or something. thats where I think its glitched… I dont know if Im being clear enough because Im new to this , but basically - before installing alexa microphone was working normal ,recorded some audios; after installing alexa microphone was still working , recorded some audios;messed with the coding to set the mic to default to see if doing this the alexa would work properly; mic its not working anymore and when I try to record now the recording command doenst stop recording even if I put duration 15;
If you need some screenshots I can send them here , Im not sure on what I should show you
@floydrexdime sorry I do not know
this module has not been maintained for a while.
@sdetweil Hey! I managed to make it work. Thank you for the help! I ended up using the google assistant and my mic started working again by itself after a few tries. Google assistant feels really good , just this new google limitation to the youtube module that its giving me a headache.