Can anyone provide guidance or advice on how to play MP3 audio and TTS through the audio jack on a host machine? We have a home announcement speaker installed in several rooms, and its audio jack is connected to the host machine.
I have Home Assistant OS installed on an x86 machine.
Alternatively, I also have a Raspberry Pi 3. Can it be configured to act as a local network audio device?
I use a combination of Mopidy and a pulseaudio TCP listener. Mopidy plays music and I send announcements using the gstreamer integration configured to connect to the pulseaudio listener on the target device. For older raspberry pis still using just pulseaudio the module_ducking plugin will reduce the music volume while announcements are playing. Raspberry pis using newer rpios use pipewire which still has the pulseaudio listener but can’t use the pulseaudio modules. It has a way to do audio ducking but i haven’t gotten it too work yet, so far the best i can do is have it pause the music while playing announcements.