LukeSkywalker92 / TeleFrame

TeleFrame - a digital picture frame for telegram
MIT License
92 stars 28 forks source link

Problems with audio: how to debug? #71

Closed stefanoco closed 4 years ago

stefanoco commented 4 years ago

I'm unable to make the audio generation work properly, and can't understand how to debug. Installed TeleFrame on a Raspberry using the provided script, auto-run with PM2. Is any log file available in this configuration?

LukeSkywalker92 commented 4 years ago

You can run pm2 logs TeleFrame to see the logs.

stefanoco commented 4 years ago

Thanks, and in case someone else follows this discussion (with limited knowledge of PM2 as myself): if you installed TeleFrame with the provided script on a Raspberry the logs are reached with pm2 logs TeleFrame as pi user, not root or sudo.

LukeSkywalker92 commented 4 years ago

Could you fix your audio problems?

stefanoco commented 4 years ago

Not yet I'm trying now

stefanoco commented 4 years ago

...ok solved was as simple as an audio peripheral not being recognized/used by Alsa. How to debug on a Raspberry, TeleFrame installed with the script:

In my case in the end I solved by modifying two lines on /usr/share/alsa/alsa.conf:

defaults.ctl.card 1
defaults.pcm.card 1