Scrcpy 2.0 mirrors Android devices with audio forwarding
github.com
github.com
There is another project inspired by scrcpy (I think) called sndcpy but it's no longer maintained it seems, so I'm very glad to see these capabilities added to scrcpy.
I've been trying in the past and failed to setup an A2DP + Bluez to allow me to use my desktop machine as a handset for my android phone. I know that such tools exist for Windows but couldn't to work well on Mac or Linux. If Scrcpy had a bi-directional audio copy (i.e. mount a mic), it would probably be able to do just that.
From the blog post:
> With the introduction of a new API to capture audio from an Android app in Android 10, I made a prototype called sndcpy. …
Not only was it work by the same author, it was one of _multiple_ pushes to make this work. Nice!
With that said, I'd love to hear more details about how you'd wire the devices you suggest to achieve that (I'm not saying it won't work, just curious to see how you think it's best to go about it), more specifically:
1. How exactly do you leverage an HDMI/USB dongle (USB C to HDMI I assume) + capture card (HDMI to USB video device is what I assume here) to direct audio output from a phone to my desktop (let's say macOS).
2. At the same time - directing my desktop audio input device as an internal mic on my android phone.
btw, if you (or anyone) has successfully made such setup to work to work via BT (i.e. using a macOS as handset for Android phone) please let me know, I'd really love to learn how you got this to work.
There should be two ways to get audio out of the phone, either via HDMI or via the cheap USB C to 3.5mm adapters. (HDMI audio splitters also exist if you need them for some reason)
To get audio into the phone, the 3.5mm adapter should be able to handle that since they can handle headsets with microphones via a 3.5mm TRRS jack.
I have not tried this setup out yet but it should work in theory.
It does sound like it would be best for a fixed setup. The only unknown for me is whether Android that lacks 3.5mm port could handle USB to HDMI and TRRS to USB at the same time.
Bye, going to Craigslist to buy them broken landfill phones before your suggestion becomes more popular and the price increases :)
> Can also plug in a keyboard and use that if you know the sequence.
For information, once the phone is unlocked and the authorization popup is open, the sequence to validate the authorization popup is Tab, Enter, Tab, Tab, Enter. The difficult part is to enable USB debugging to get the authorization popup without adb though.
I found a friend that owned the same model of phone as mine. I used his phone to approximately eye-measure where on the screen I have to press after entering the Settings app.
Now I repeated these presses on my phone. Luckily, although my phone was broken and the screen had become almost fully black, the touches registered.
----------- edit:- If you find it difficult to find a friend that owns your unique phone, your local mobile shop might have a demo phone for you to try out.
Or Youtube search for a video titled "How to enable debugging permissions on Samsung S8?"
like this: https://www.youtube.com/watch?v=2wggP-e3A1Y
stupid as it looks it saved my data without any sophisticated repair
Hit the Google Assistant button, ask it to turn on "TalkBack". Now you can browse the interface the same way someone blind would browse the interface. Plug in a USB keyboard.
From here you go to the Settings page and enable Developer Tools.
I pray to God to give me this wisdom everytime I am goofing off on instantdomainsearch.
---------edit:-
Why scrcpy?
A colleague challenged me to find a
name as unpronounceable as gnirehtet.
strcpy copies a string; scrcpy copies a screen.
https://github.com/Genymobile/scrcpy/tree/4e9e712#why-scrcpyAgreed on the cool/unique, but I could never remember the name when I needed to look for it, because I never made the "screen copy" connection.
Just another data point for why marketing is a thing, I suppose.
You would love for browsers to implement CSS colored urls or capital lettering to resolve both the issues you raised.
Alas, a feature has turned into a bug :(
Not the prettiest but it worked :-)
https://github.com/sponsors/rom1v
and two LiberaPay sponsors:
who donate a combined 3 euro per month. If you can afford it, please send this guy some money, he has earned it many times over.
As far as I know scrcpy only work because android devices works as USB device/gadget and can be connected to a host, two computers will work both as host and cannot be connected directly. You could do it with something akin to the Raspberry Pi that can work as a USB device instead of a host, but I don't know of any software that does directly(without emulating a network connection, and if you emulate a network connection you could use one of the many sofware for screen sharing) if i remember correctly even scrcpy use ADB to emulate a TCP connection.
I cannot believe transferring a file from one computer to another without a network is still such a pain in the rear.
To avoid this problem, I still carry in my bag two ethernet-to-usb adapter and an Ethernet cable to be able to quickly connect two devices together.
Really cool to see audio integrated into scrcpy without having to use sndcpy - https://github.com/rom1v/sndcpy
It's still a userland app.
Now with newer phones I honestly never tried, but if I could share the screen on the pc I would be able to use AR effects from Instagram and TikTok on Skype/Discord etc.
https://learnopencv.com/real-time-style-transfer-in-a-zoom-m...