Alexa starts, but won't listen to input
See original GitHub issueI’ve successfully started Alexa, and she might be listening to input, but I don’t think so. On boot, I get a ‘starting Alexa’ in the log, a ‘hello’ greeting and 3 flashes of my green LED. If I then push the button (or jumper the GPIO directly together, or start the RPi with the GPIO jumpered from GPIO18>GND and remove the jumper), my LED turns to amber for almost exactly a second and then flashes red and shuts off. This is regardless of how long I hold the button/jumper. Now I bought the button as an individual part without a spec sheet, and it has 4 poles, but I’ve tried all different combinations of jumping that to the GPIO18>GND with seemingly no effect. I’m not certain the microphone is working, here’s my output of arecord -L:
plughw:CARD=USB,DEV=0
Jabra BIZ 2400 USB, USB Audio
Hardware device with all software conversions
And here’s what I have in my main.py file:
#Settings
button = 18 #GPIO Pin with button connected
lights = [24, 25] # GPIO Pins with LED's conneted
device = "plughw:USB" # Name of your microphone/soundcard in arecord -L
(I tried plughw:0 and :1 and I get this error:
Traceback (most recent call last):
File "/root/AlexaPi/main.py", line 156, in <module>
start()
File "/root/AlexaPi/main.py", line 124, in start
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, device)
alsaaudio.ALSAAudioError: No such file or directory
Thoughts, anyone?
Issue Analytics
- State:
- Created 7 years ago
- Comments:36 (14 by maintainers)
Top GitHub Comments
I use a usb microphone, and the default
device = "plughw:1"
works just fine for me. What did it do for you?@dony71 I was having the same issue and realized that I was using https instead of http on my Amazon security profile for allowed origins/allowed return URLS.
Specifically: http://localhost:5000 and as a return URL put http://localhost:5000/code
Also Idk where I read that http://0.0.0.0:5000 was the addy for the token/login, but that’s not accurate. localhost/loopback/your_ip