Hey everyone,
I’ve been looking into trying to make my homeassistant server act as a network audio receiver and connect my stereo system to the computers 3.5mm audio jack.
The only information I could find on the topic was the exact opposite of that however. Every page regarding music playback I found was about turning Homeassistant into a music player which can stream to other devices. This is not what I want though.
I already have a navidrome server running and use Symfonium on my phone to stream music from that. Now I want to connect Symfonium to a UPnP or DLNA renderer and control music playback on that from my phone. Is there any way to make homeassistant fulfill that role? Alternatively (though that would be a bit off topic in this forum) do you know a docker container that could do that instead?
Your sound signal from your stereo is analog, so you need a analog to digital AD converter, which is usually in a sound card/board on the computer.
You also need a program to handle the AD converter.
Then you probably want to stream it and not wait for the conversion process to completely finish before you play it, so you need a streaming service app.
Once that is up, then HA can grab the stream and play it.
If your sound card have a line/aux in (sometimes the mic) port, then the AD converter is there.
The streaming software or the OS might have the part to handle the AD converter , so start looking for a streaming software.
I’m using HAOS installed in a VM on a lenovo tiny PC running proxmox. I was hoping to pass through the PC’s audio device to the HAOS VM and go from there
I think what you are talking about is the opposite of what I am trying to do. I want homeassistant to output an analogue audio signal using the PC’s soundcard. The audio signal should be received from my phone by having HAOS act like a wifi speaker
Yes, you can make HA output to the analog output on the jack plug, but then you would have to connect it to the jack plug in your phone and use a sound recorder app of some kind.
WiFi makes no sense here, since WiFi is digital.
And where do you stereo fit into that description?
You know how you can stream music to, for example, a sonos speaker from your phone over wifi? I want home assistant to act like a wifi speaker just like that but instead of it having its own speaker the audio should be output to my stereo amplifier which powers the actual speakers.
Alternatively picture homeassistant as a bluetooth audio receiver but replace the bluetooth with a wifi connection.
A little update for future reference in case anyone wants to do the same thing as me.
Music Assistant didn’t help me at all. From what I can tell it’s really not designed to be able to receive audio streams from another device and output them to the audio card of the computer its installed on.
I found a standalone solution called gmrender-resurrect without any connection to homeassistant that theoretically should do what I want to achieve but I couldn’t get it to run.
I tried setting up a docker container with that program and was able to find the DLNA Renderer from my phone but when I tried to play music on it the playback would fail.
It is literary the first thing on the page I linked to.
The issue is probably more your input stream.
DLNA is not perfectly implemented on many devices and the output and input devices must be able to handle the encoding of the stream.
The way I understand that paragraph it refers to streaming “from the HA host (aka your server) to your (probably wirelessly) connected speaker”. Even if I do interpret that wrong, the music player I use on my phone does not support squeezelite unfortunately
i used my Rpi for years to receive audio via Bluetooth / shairport-sync / Scream. PCs, tablets and smartphones could stream music to it and it was played on my 80s stereo system, connected via the 3.5mm jack.
I just couldn’t find any person who achieved something similar in home assistant. Is there no need for this??? SpotifyConnect works just fine atm but as far as i know it just uses the underlaying alsa system whereas Bluetooth Audio sink needs a audioserver like pulseaudio.