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

sound issues #478

Open skratch1975 opened 5 years ago

skratch1975 commented 5 years ago

As you can see this is my log

if a change vlc to sox in yaml it says hello but no yes, if vlc no hello and doesnt answer questions just digital noise please help running raspbian buster desktop

● AlexaPi.service - Alexa client for all your devices Loaded: loaded (/usr/lib/systemd/system/AlexaPi.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2019-09-12 22:41:25 BST; 6min ago Docs: https://github.com/alexa-pi/AlexaPi/wiki Main PID: 498 (python3) Tasks: 5 (limit: 2200) Memory: 75.0M CGroup: /system.slice/AlexaPi.service └─498 /usr/bin/python3 /opt/AlexaPi/src/main.py --daemon

Sep 12 22:41:52 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:41:52 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:41:52 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:41:53 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:41:53 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:43:41 raspberrypi python3[498]: INFO: Triggered: pocketsphinx Sep 12 22:43:48 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:43:48 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:43:48 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error Sep 12 22:43:49 raspberrypi python3[498]: [6df4c990] alsa audio output error: cannot estimate delay: Input/output error

Thank you for reporting an issue with AlexaPi.

Make sure you are running the latest version of AlexaPi, and look through issues before submitting.

Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.

In order to help troubleshooting, be sure to include the following information:

Output of the audio debugging script.

Your OS (including version) where you are running AlexaPi: Note: Raspbian older than Stretch is not supported!

Your hardware platform and model you are running on:

Python release (python3 --version):

Description of problem:

Expected:

Problem-relevant config.yaml entries:

Steps to reproduce:

Traceback (if applicable):

Additional info:

skratch1975 commented 5 years ago

i am new to all this spend days on it just cant get it running, working on this project for a project in a recovery centre as part of digital signage please help :)

skratch1975 commented 5 years ago

http://alsa-project.org/db/?f=712724b37ad76a070189bcc4a993fbcd813f0c6c log

jacobkaufman commented 4 years ago

I think you have to configure your .asoundrc to use your mic as default with your output device.

Right now you have your default to use just card0 which is separate from your mic on card1.

So you would edit your .asoundrc with sudo nano ~/.asoundrc

I think something like this would work:

pcm!.default { type asym playback.pcm "hw:0,0" capture.pcm "hw:1,0" }

There's more info on how to setup asound here.

I am by no means an expert so if this doesn't work I just may have something I missed. Hopefully this gets you started in the right direction.

You may have to set up a dmix plugin and a dsnoop plugin and run them with asym.

Good luck, I know it took me a while to finally get it working!