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 does not answer questions just responds with a "Yes" and then scilense - Triggered: pocketsphinx (process_response Error) Status Code: 403

See original GitHub issue

Your OS (including version) where you are running AlexaPi: Raspbian Jessie lite

Your hardware platform and model you are running on: Raspberry Pi zero W + Respeaker 2mic hat

Python release (python2 --version): Python 2.7.13`

Description of problem: Alexa does not answer questions just responds with a “Yes” and then there scilense. I can trigger Alexa by my voice and the button but just says yes. It was all working this morning then this started, I rebuild-ed the entire thing from scratch with a fresh copy of Raspbian just in case and everything in the AlexaPi installation process concluded fine. I can also notice that there is delay between the time you can trigger Alexa after the last trigger it takes like 30 seconds or so for her to be able to respond with just a “Yes” again.

Expected: Alexa to answer to questions etc after triggered e.g. Q: “Alexa?” A: “Yes” Q:“Whats the time?” A:" the time is …"

Problem-relevant config.yaml entries: Just changed the button GPIO pin to 17 from 18 as per the voice card vendor instructions and it was all working fine before.

sudo nano /etc/opt/AlexaPi/config.yaml

modifi options

voice_confirm: true

raspberrypi: # GPIO Pin with button connected button: 17 # GPIO Pin for the playback/activity light plb_light: 24 # GPIO Pin for the recording light rec_light: 25

Steps to reproduce:

  1. Install Alexa Pi and followed the process as described in this git

Traceback (if applicable): I can provide my history command output

Additional info: these are my logs: I rebuild-ed everything from scratch over and over, the sound card installed and works fine, Alexa listens and response with yes but never continues to replay to the question i asked. She just says yes and then silence, here are my logs, any idea anyone please?

Feb 11 19:30:17 raspberrypi python[474]: INFO: Checking Internet Connection … Feb 11 19:30:18 raspberrypi python[474]: INFO: Connection OK Feb 11 19:30:18 raspberrypi python[474]: INFO: AVS token: Requesting a new one Feb 11 19:30:18 raspberrypi python[474]: INFO: AVS token: Obtained successfully Feb 11 19:30:30 raspberrypi python[474]: INFO: Triggered: pocketsphinx Feb 11 19:30:33 raspberrypi python[474]: INFO: (process_response Error) Status Code: 403 Feb 11 19:30:42 raspberrypi python[474]: INFO: Triggered: pocketsphinx Feb 11 19:30:46 raspberrypi python[474]: INFO: (process_response Error) Status Code: 403 Feb 11 19:32:19 raspberrypi python[474]: INFO: Triggered: pocketsphinx Feb 11 19:32:23 raspberrypi python[474]: INFO: (process_response Error) Status Code: 403

pi@raspberrypi:~ $ /opt/AlexaPi/src/main.py –d ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dsnoop.c:583:(snd_pcm_dsnoop_open) unable to create IPC semaphore ALSA lib pcm_dsnoop.c:556:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dsnoop.c:583:(snd_pcm_dsnoop_open) unable to create IPC semaphore ALSA lib pcm_dsnoop.c:556:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream ALSA lib pcm_dsnoop.c:583:(snd_pcm_dsnoop_open) unable to create IPC semaphore 2018-02-11 20:04:58 INFO: Checking Internet Connection … 2018-02-11 20:04:59 INFO: Connection OK 2018-02-11 20:04:59 INFO: AVS token: Requesting a new one 2018-02-11 20:05:00 INFO: AVS token: Obtained successfully Exception in thread Thread-1: Traceback (most recent call last): File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner self.run() File “/usr/lib/python2.7/threading.py”, line 754, in run self.__target(*self.__args, **self.__kwargs) File “/opt/AlexaPi/src/alexapi/triggers/pocketsphinxtrigger.py”, line 66, in thread self._capture.handle_init(self.AUDIO_RATE, self.AUDIO_CHUNK_SIZE) File “/opt/AlexaPi/src/alexapi/capture.py”, line 113, in handle_init frames_per_buffer=chunk_size File “/usr/local/lib/python2.7/dist-packages/pyaudio.py”, line 750, in open stream = Stream(self, *args, **kwargs) File “/usr/local/lib/python2.7/dist-packages/pyaudio.py”, line 441, in init self._stream = pa.open(**arguments) IOError: [Errno -9996] Invalid input device (no default output device)

pi@raspberrypi:~ $ cd ~ && wget https://raw.githubusercontent.com/alexa-pi/AlexaPi-misc/master/alsa-info.sh && bash alsa-info.sh –2018-02-11 19:51:24-- https://raw.githubusercontent.com/alexa-pi/AlexaPi-misc/master/alsa-info.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.60.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.60.133|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 27872 (27K) [text/plain] Saving to: ‘alsa-info.sh’

alsa-info.sh 100%[==========================================>] 27.22K --.-KB/s in 0.01s

2018-02-11 19:51:25 (2.16 MB/s) - ‘alsa-info.sh’ saved [27872/27872]

ALSA Information Script v 0.4.64

This script visits the following commands/files to collect diagnostic information about your ALSA installation and sound related hardware.

dmesg lspci lsmod aplay amixer alsactl /proc/asound/ /sys/class/sound/ ~/.asoundrc (etc.)

See ‘alsa-info.sh --help’ for command line options.

cat: ‘/sys/module/snd_soc_simple_card/parameters/*’: No such file or directory Automatically upload ALSA information to www.alsa-project.org? [y/N] : y Uploading information to www.alsa-project.org … Done!

Your ALSA information is located at http://www.alsa-project.org/db/?f=1bfc46ac5afe839401bc592ecf43f70c3b25e93c

Please inform the person helping you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pfiolcommented, Feb 14, 2018

@ycreng Absolutely correct. Tested and working.

I’ve updated the wiki with this instructions so new installers are create the correct Security Profile.

1reaction
ycrengcommented, Feb 13, 2018

In fact, you only need to have https links.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alexa not responding after "yes" · Issue #497 - GitHub
On start I hear "Hello" from Alexa and when I use the wake word I get the response "yes" When I ask a...
Read more >
Alexa Doesn't Understand or Respond to Your Request
To make sure that Alexa hears you, move your device away from walls, other speakers, or background noise. Speak naturally and clearly. Rephrase...
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 ACTIONABLE NOTIFICATIONS (Home Assistant + ...
Have you ever wanted Alexa to prompt you and ask you a question ? Well now you can ! In this video we...
Read more >
SOLVED! How to fix Alexa randomly talking in the middle of ...
Just say “Alexa, set do not disturb” before you go to bed. Lastly, always unplug your Echo and then plug it back in....
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