nikp123 / scrcpy-desktop

Run an Android desktop environment off of a device using ONLY scrcpy
GNU General Public License v2.0
214 stars 15 forks source link

Enabling sound on Linux with pipewire over bluetooth #15

Closed MaciejMalczyk closed 1 year ago

MaciejMalczyk commented 1 year ago

If you have pipewire installed and enabled you can pass audio over bluetooth from phone to pipewire backend on pc.

Simply connect your phone to pc via bluetooth and check if you can pass audio from device to pipewire backend. Phone will detect pipewire server as bluetooth speaker set and pass it directly to your pc speakers. You can even perform calls as pipewire grabs pc mic and sends it to device!

Below quick example of how it works: https://github.com/nikp123/scrcpy-desktop/assets/11708702/b562be27-a800-43ed-9a48-5ab175560ac6

nikp123 commented 1 year ago

Neat trick. Though doesn't scrcpy offer that functionality natively over USB in the more recent versions? Haven't updated because I hadn't been working on this for a while. If that still doesn't exist, then this should still work (albeit with its UX issues).

nikp123 commented 1 year ago

Audio works straight out of the box now, you just need to update your scrcpy version.