-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No audio output on local devices (eg USB-speakers) #7
Comments
On the principle, containers isolate everything from the host. So this is normal that you can’t access this device from within the container. |
Thank you for your quick response. My dirty workaround is:
However i think it would be nice if owntone docker is able to play audio to the local speakers. |
Great! I need to test that and document it. |
I thought so too, however when I tested this it did not work. Please test it for yourself. |
The owntone-container does not have a /dev/snd device. The daapd (owntone) docker from linuxserver.io does have a /dev/snd device. Adding --device /dev/snd to the startup script works. Audio plays to my speakers without shairport-sync. The volume control is not good though, much to loud! |
@marioscube to be sure to understand. |
Indeed, if I add —device /dev/snd to the configuration of linuxserver.io daapd to start a docker container local ALSA audio works. When using the owntone/daapd webinterface I have to slide the volume sliders almost to zero, otherwise my speakers (original usb Harman Kardon soundsticks) are way too loud. That is a problem with stairport-sync as wel. So possibly hardware specific. I need to test with other speakers. |
If you can verify which package needs to be added - I guess it is alsalib, plus others - then I could envision to add it. Regarding the volume, I guess you have to use the |
I will try tomorrow. No need for an actual working sound card or output on your motherboard. Just check inside the container if there is /dev/snd . Alsamixer does not help enough. |
@hacketiwack The only relevant difference I see at this moment (without building) is: |
Error on building docker image of owntone with Dockerimage from repository. OK fixed that error, my bad. Needed to read up on building a docker image. |
..... interesting ...... I build owntone-docker from this github. git clone https://github.com/owntone/owntone-container docker build . -t owntone:test then:
check for /dev/snd : Edit owntone.conf
And it works ........ (for now). @hacketiwack |
Something to add: If I make my own image based on the buildfile of this repo then I miss group 29 in the container. I need to test further. Edit: |
Same here. I send the audio stream to an av receiver via airplay, but i have to turn the volume nearly down so that it is not too loud. Did you fix the issue with your soundsticks? |
Sending audio to HomePod mini and/or AirPort Express I have no problem with needing to have to turn the volume down. If I send the audio to my USB Soundsticks I need to turn the volume almost to 0. (actually 5) I will check again tomorrow. No solutions. Alsa should not interfere with airplay...... |
I tried owntone from a docker container on debian 12 bookworm xfce.
When I try to play music to airplay devices it works (listening to music now on my homepod mini).
When I try to play music to a locally attached sound device (soundsticks) owntone does not work.
My relevant setup in owntone.conf:
Error when enabling the sound device:
[2024-08-22 09:46:31] [ LOG] laudio: Cannot get card index for 1[2024-08-22 09:46:31] [ LOG] laudio: Failed to attach mixer 'hw:1': No such file or directory [2024-08-22 09:46:31] [ LOG] laudio: Could not open mixer 'hw:1' ('(null)') [2024-08-22 09:46:31] [ LOG] web: JSON api request failed with error code 500 (/api/outputs/0/toggle)
When I use the same config on another computer with owntone installed without docker it works.
Is this a (owntone) docker limitation, a config error or something else?
The text was updated successfully, but these errors were encountered: