question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alexa starts, but won't listen to input

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:36 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
lennyshcommented, Mar 30, 2016

I use a usb microphone, and the default device = "plughw:1" works just fine for me. What did it do for you?

0reactions
eurokid21commented, Sep 18, 2016

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 8 Common Alexa and Amazon Echo Issues - Lifewire
Make sure the Alexa-enabled device is in Wi-Fi range. Alexa might seem to be unresponsive because your Echo is too far away from...
Read more >
Alexa Device Is Unresponsive: How To Fix in minutes
Open the Alexa app. · Click on “Devices” in the app. · Under devices, click on “Echo & Alexa”. · Tap on the...
Read more >
Alexa Lights up but Won't Respond: 7 Ways to Troubleshoot
If Alexa lights up but won't respond, the most common reason is that it didn't understand you, so repeat the command.
Read more >
Alexa Won't Play Music? How To Fix It - Tech News Today
Turn on and off the Alexa Device · Unplug the Amazon Echo. · Leave it unplugged for at least a minute. · Plug...
Read more >
Is Alexa Not Responding? What to Do to Fix It - MakeUseOf
Open the Amazon Alexa app on your phone. · Tap the Devices option at the bottom bar of the app. · Tap All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found