alexa-pi / AlexaPi

Alexa client for all your devices! # No active development. PRs welcome # consider https://github.com/respeaker/avs instead
MIT License
1.33k stars 396 forks source link

AlexaPi working fine in debug-mode but not listening while started normally? #502

Open londer1995 opened 4 years ago

londer1995 commented 4 years ago

Output of the [audio debugging script]:


ALSA Information Script v 0.4.65
--------------------------------

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

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

See 'alsa-info.sh --help' for command line options.

cat: /tmp/alsa-info.Sjaq9X0fcj/acpidevicestatus.tmp: 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://alsa-project.org/db/?f=8c055428dde7d2c0942544b80de4504128f93f75
Please inform the person helping you.

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

latest version of raspberry os, updated/upgraded

Your hardware platform and model you are running on:

raspberry pi 4 model b

Python release (python3 --version):

Python 3.7.3 (default, Dec 20 2019, 18:57:59) 

Description of problem:

While I run AlexaPi in debug mode it works fine.
**I need to call Alexa a few times before she gets to wake**, but still she's working.
When I try to use "sudo systemctl start AlexaPi.service" there are no errors,
but AlexaPi will no longer answer to me. 

Expected:

I expect Alexa to work also in normal mode, not only in debug mode!

Problem-relevant config.yaml entries:

I used [reccomended solution for PA and config.yaml](https://github.com/alexa-pi/AlexaPi/wiki/Audio-setup-&-debugging).

Additional info:

I'm using a jabra 510 as external device, connected with USB.
It's working, I can play my own voice and even play Alexa's records
(from /tmp/alexapi_runtime_xxx[...]/record).

Additional question: seems like I can't play music from amazon, but also I can't set a simple timer. What am I doing wrong?

jacobkaufman commented 4 years ago

Have tried adding the specific device for your capture device?

pcm.input { type hw card 2 device 0 }