teamclouday / AndroidMic

Use your Android phone as a mic to Windows PC
MIT License
113 stars 9 forks source link

Usb request #5

Closed wiiznokes closed 1 year ago

wiiznokes commented 2 years ago

Hi, thanks you for this great app. I wanted to use my android mic to cummunicate (discord, games, ...). I'm a beginer in programmation and I would like to try to do that, Also, I can't use wifi, so I think I will begin to try implement usb for passing data. So, if you have any lead to how accualy do that, it would be my pleasure. Thanks

teamclouday commented 2 years ago

So for usb connection, there are two ways I can think of:

  1. Use adb to forward local network to phone.
    I had a working prototype in dev-usb-adb branch. It requires enabling usb debugging in Android developer setting. Besides that, it is a server/client TCP connection. The code there is too old, in abandoned state.
  2. Use usb tethering.
    It essentially let PC access your phone's network. You can set network priority in Windows so that your PC does not use up all the bandwidth, especially when on mobile data. Again the rest is just TCP connection as usual. I think the current release works with usb tethering, though I haven't fully tested it. You can try to select the Wifi option but set up connection with usb tethering and see if it works.
wiiznokes commented 2 years ago

Ok, I will try with usb tethering. Thank you for the information.