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.

Headless PiZero with HifiberryMiniamp and Squeezlite

See original GitHub issue

http://www.alsa-project.org/db/?f=04eaa25991134d530dc1c46cbb9d294434c44b27

Hi, I have an output of alexaPi as follows:

Jul 07 21:43:26 KloPi python[370]: INFO: Checking Internet Connection ... Jul 07 21:43:27 KloPi python[370]: INFO: Connection OK Jul 07 21:43:27 KloPi python[370]: INFO: AVS token: Requesting a new one Jul 07 21:43:28 KloPi python[370]: INFO: AVS token: Obtained successfully Jul 07 21:43:29 KloPi python[370]: [01e87270] alsa audio output error: cannot open ALSA device "default": Device or resource busy Jul 07 21:43:29 KloPi python[370]: [01e87270] core audio output error: Audio output failed Jul 07 21:43:29 KloPi python[370]: [01e87270] core audio output error: The audio device "default" could not be used: Jul 07 21:43:29 KloPi python[370]: Device or resource busy. Jul 07 21:43:29 KloPi python[370]: [01e87270] core audio output error: module not functional Jul 07 21:43:29 KloPi python[370]: [b3545020] core decoder error: failed to create audio output

As is said i’m trying to run it on an headless PiZero without desktop and an Hifiberry MiniAmp and using it with Squeezlite. The Hifiberry Amp is the default audio output. Does squeezelite affect the audio output of AlexaPi? I’m unsure at the moment if i have to follow the Pulseaudio steps because i don’t use a desktop installation.

aplay -l **** Liste der Hardware-Geräte (PLAYBACK) **** Karte 0: sndrpihifiberry [snd_rpi_hifiberry_dac], Gerät 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 OS: Raspian stretch

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EmerickHcommented, Jul 19, 2018

Hello, Alsa can’t handle multiples applications using a device at the same time. Try to :

  • Use dmix PCM:
    output_device: "dmix"
    
    in /etc/opt/AlexaPi/config.yaml (You must also change device in Squeezlite)
  • Use PulseAudio
0reactions
ErfolgreichCharismatischcommented, Sep 19, 2019

I’m running PA on an old Raspberry Pi B that is less performant than a Pi Zero without any problem so I think you’ll not have any problem.

I am trying to install on jessie on a Raspberry Pi B. It cannot find vlc-bin. What to do?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi Zero 2 W - HiFiBerry
I'm searching for a headless system to make a couple of speakers "smart". Pi Zero 2 W is reliably cheap, so add DAC...
Read more >
HiFiBerry Amp
Everything about our HiFiBery Amp/Amp+ add-on amplifier moduls for the Raspberry Pi.
Read more >
HiFiBerry Amp – HiFiBerry
Everything about our HiFiBery Amp/Amp+ add-on amplifier moduls for the Raspberry Pi.
Read more >
HiFiBerry MiniAmp
This is our smallest amplifier board, designed for the Raspberry Pi Zero. It can be used not only with the Raspberry Pi Zero,...
Read more >
Share your self-made Squeezelite-ESP32 hardware project
For this purpose I designed my own circuit board in Raspberry Pi Zero format. Everything works as before, only the boot time has...
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