Airplay Whole House Audio with Shairport-Sync and Forked-Daapd

Actually I haven’t found a way to play a specific media track/song/file that is part of the owntone library but not part of a playlist via the HA forked-daapd integration. The way I’m using my multiroom audio setup is a) chose one of the playlists or b) airplay to shairport-sync running on the same host and piping to owntone. When using b) obviously the ‘source’ is set to Default without me doing anything.
I’d love to hear about other options/use cases.

Is there nowadays already/again a working Owntone HA-OS addon? Or are all HA-OS users here still running it via Portainer? For me the supervisor is complaining due to this setup
image

1 Like

@GoSpursGoNL I don’t know – I set up owntone on its own VM on my ovirt installation; it’s not running on my HassOS system (which happens to also be a VM).

@Hackashaq666 , @ddppddpp (and all) – My current issue is that if I go from Mac -[AirPlay]- shairport-sync -[pipe]- owntone -[AirPlay]- speaker(s) then the volume is WAY LOW vs just going from Mac to the speaker directly via airplay (i.e. without going through the shairport+owntone server). Even if I put the Mac volume all to way to full, the volume through owntone + airplay is much lower than just using the direct airplay.

Has anyone else noticed this? Any ideas where to look?

That may be a classic ‘chain’ issue.

It’s not just going from Mac -[AirPlay]- shairport-sync -[pipe]- owntone -[AirPlay]- speaker(s), but might be going from from Mac -[AirPlay]- shairport-sync -[pipe]- owntone - Pulse/Jack/Alsa -[AirPlay]- speaker(s) or there may be even more software in there.

Point being: if anything in the chain is set to reduce the volume then the volume will stay reduced for the whole chain.

Back in the day when Alsa was the only real audio solution on Linux, you’d have to install alsamixer just to adjust volume levels before you were half way happy with the result.


Note since we’re here: You ideally don’t want anything in-chain to reduce or amplify the audio (extra amplification can cause distortion), and that can be very tricky. Sometimes 0 volume means “don’t amplify at all” and sometimes it means “reduce it entirely so it’s muted”. Sometimes 50% or 70% volume means “don’t amplify at all”, or sometimes that number is arbitrary. Usually the documentation will tell you but not always. What you’re looking for is 0dB throughout the chain. Amplify at the amp if you need to (that’s what it’s for after all)

Yeah. I’ve addressed this earlier. Second half of the comment.

A question: is anyone running forked-daapd / owntone as a docker container?
Everything works, I can access the webui (through my local synology ip address). However I am having problems when authenticating the spotify plugin. The authentication redirects to an owntone.local address which off course doesn’t work. Anyone knows how to bypass that? Or how you guys got that working? Thx

edit: got it working using a workaround

Tried following the steps in the first post to get Shairport to forward audio to OwnTune (originally called Forked-Daapd) but nothing happens on the OwnTune side when I play music to the Shairport airplay device. Anyone run into anything similar? No errors logs nothing to report

It would be very hard to answer with no isights on your particular setup (i.e. what exactly are you running, how and where.
I’d start with troubleshooting the link b/w ShairportSync->named pipe->OwnTone and the answers to the questions above will tell you how to do it.
There’s good documentation on OwnTone.github.io

Yeaup I realized I gave no info on my setup to get any good help. I did end up figuring it out, the piped audio needs to be placed in the /srv/music directory. I originally had in the /srv and it wasn’t working. Caught a line in the Owntone log mentioning no music found in the /srv/music directory and that is what guided me there. Didn’t find any documentation on that though.

my guess is that you’re referring to a setup of OwntTone + Shairport Sync on HomeAssistant. IIRC the location of the named pipe was specific to one of the few owntone integrations. There is no such requirement if you run OwnTone on a different host (like I do).

I am running OwnTone and Shairport on a RPi 3b+, not the same host as HA. Maybe I was running into file permissions issue, even though I Chmod 777 the /srv directory

Finally a proper HA addon for Owntone!