Hey friends. What's the quickest way for me to get a headless linux box to be able to play audio (say, from Youtube Music?) on a pair of speakers?

I was thinking about setting up a chromecast target - but seems like all of the solutions I've found require installing Chrome (which would just open a whole can of depends I don't need).

I'm way out of the media game - so you might be thinking "surely he's thought of ______" - I assure you, I have not! Send any and all suggestions!

I also started a thread related to this in the past, but I wasn't clear about the headless part... but I am crawling through those responses as well and will try some things out! Thanks again to everyone who suggested there!

This seems like the best solution so far:

I think I can combine that with an mpd client running on the same machine to essentially control what comes out of the mac mini's audio port.

@funnylookinhat You can use mpv to play audio files even if there's no screen.

@wizzwizz4 That would be great - and it looks like you can do something like this:

vlc --intf dummy <stream>

But when I go to install VLC I of course get all sorts of X / Gnome / Etc. packages for a total install of 1.2GB - not what I was hoping. :)

@wizzwizz4 Scratch that - package `vlc-bin` seems to be on the right track! I'll post progress later today...

@funnylookinhat if you have the music file locally you can use mpd.

@funnylookinhat I remembered there is a project for the Raspberry Pi that seemed to fit the bill for what you are looking for, but I can't remember the name 🤔

@RyuKurisu I thought so too - and I've been googling around and it seems there _were_ a lot of projects, but most of them are no longer maintained or won't work with official google SDKs.

After I found this thread I stopped trying to figure out how to make that work:

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.