r/linuxapps • • 2d ago

Made an open-source app to stream your PC audio to your phone over Wi-Fi

Hey everyone,

Wanted to share a project I've been working on called Audio Share RS.

It lets you stream audio from your PC to an Android phone or another computer over your local network. So you can basically use your phone as a wireless speaker, or listen through headphones connected to it.

It's a rewrite inspired by "mkckr0/audio-share" (https://github.com/mkckr0/audio-share), with a Rust backend (Tokio), Tauri desktop app and a Kotlin/Jetpack Compose Android client.

It has automatic device discovery, multiple client support, adjustable audio buffering, volume boost, and TCP fallback for networks where UDP doesn't work. There's a CLI too.

It works entirely over LAN, so no account or cloud service is needed.

Still working on improving things, particularly the Android side, but thought some people here might find it useful.

If anyone gives it a try, I'd love to know how it works on your setup, especially on different Linux distros.

GitHub: https://github.com/AmanCode22/audio-share-rs

It's Apache 2.0 licensed. Contributions and bug reports are welcome, and if you like the project, consider leaving a star!

3 Upvotes

19 comments sorted by

2

u/mistahspecs 1d ago

Pipewire and kde connect both already have this built in, and are actual well developed and maintained programs

1

u/AmanCode22 1d ago

PipeWire can do network audio streaming, yeah, but it needs some setup, especially if you're sending it to an Android phone. I'm trying to make that a bit easier with a dedicated app that works on Windows and macOS too.

As for KDE Connect, doesn't it just let you control media playback rather than actually stream your PC's system audio to your phone? Unless I've missed a feature there.

1

u/mistahspecs 1d ago edited 1d ago

Literally zero setup for pipewire. Connect your phone to your computer via Bluetooth. That's it lol. Both show up as input or output devices to each other. Meanwhile your's need apps and services.

The native setup is bidirectional: I can play my phone through my very nice computer speakers as well as use my phone as a computer speaker

1

u/AmanCode22 1d ago

Oh that's interesting, didn't know about that. How are you setting it up? Is it actually streaming through KDE Connect over WiFi or using Bluetooth/PipeWire? Couldn't find that feature in KDE Connect itself.

1

u/avdept 2d ago

why not just use jellyfin/navidrome for same purpose?

1

u/AmanCode22 2d ago

Jellyfin and Navidrome are great, but they're mainly for streaming your media library. Audio Share RS is a bit different since it captures your PC's actual system audio in real time.

So you can be watching YouTube, playing a game, or using pretty much any application and have its audio play through your phone, without needing to add anything to a media library.

It's more about turning your phone into a wireless audio output for your PC than running a media server.

-1

u/avdept 2d ago

makes even less sense, sorry

why not just plug wireless headphones?

3

u/AmanCode22 2d ago

I mean, that's kinda like asking why use speakers when you can just use headphones lol. They serve different purposes.

If you already have wireless headphones, sure, just use those. This is more for when you want to use your phone as a speaker or stream your PC's audio to another device over WiFi. Not everyone needs it, but it's useful for some setups.

1

u/Glad_Beginning_1537 1d ago

perhaps add bluetooth connectivity too.

1

u/AmanCode22 1d ago

Ya sure

1

u/Novel_Lie5519 1d ago

i am not letting claude have access to all my audio, twin

1

u/AmanCode22 1d ago

But from where ai comes in a running app?

1

u/Novel_Lie5519 1d ago

you can’t even read the code it’s making. you can’t be trusted to make sure it didn’t slip in a backdoor or a stupid vulnerability

1

u/AmanCode22 1d ago

I can actually I am not like purely vibe coder, i decided stack, decisions, and did some checks also

1

u/Novel_Lie5519 1d ago

you are a 9th grader.

1

u/AmanCode22 1d ago

So what? I have been using python for a while back from ai existed in termux . Also did linux ricing through xserver xsdl + xfce in termux in lockdown

1

u/AmanCode22 1d ago

Have known other languages later then

1

u/TWB0109 1d ago

https://apps.gnome.org/AudioSharing/

Has existed for a very long time and as others said, pipewire can do network audio streaming via bluetooth.

1

u/AmanCode22 1d ago

Oh nice, hadn't come across that one before. Looks pretty similar actually. Mine also supports Windows and macOS hosts, has a dedicated Android client and can stream between PCs too.

Not claiming it's the first app to do this lol, just wanted to build my own take on it with a few extra features.