teamclouday / AndroidMic

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

Failed to connect - using USB connection mode on tablet #37

Open Filippo-N opened 3 days ago

Filippo-N commented 3 days ago

I have installed AndroidMic on my Windows 11 computer, and the on my Android tablet. Both tablet and computer are connected via USB cable. Attached are the screenshots of the Settings page on my computer and the tablet. They are both set to "USB" mode, but when i click on "Connect" on the tablet, i get a "Failed to connect" error message.

I have tried updating the IP and PORT on the Tablet app, using the default settings, or the local host of "127.0.0.1". I have also tried updating the PORT to 6000 to match the port # listed on the computer app. I am out of ideas.

On the tablet, USB Debugging is set on, and Default USB configuration has been tested with both "File Transfer" and "USB tethering", but no changes have been detected.

Failed to connect - Error Message Settings on Tablet App Settings on Computer App

teamclouday commented 2 days ago

Hi, try to set the IP address to 192.168.0.48 and see if it works. From the screenshot it appears to be 192.168. which is incomplete

Filippo-N commented 2 days ago

We found the solution to the problem today. If you look under "Releases", we took the compiled code under version "Release 2.0.0", which is currently the latest version. What is strange is that that code is different from the one my developer downloaded from Github, which is supposed to be the latest.... Look at the screenshot below, and see how the UI of the control panel on the tablet has 3 options and it looks different from the one I submitted yesterday. Furthermore, as soon as you select USB(ADB), the "Port" automatically defaults to 6000, which is the same port that the control panel on the computer side defaults to as well.

Quick question....I did install "VB-Audio" on my computer, but the audio is too choppy. I didn't expect superb clear audio, but it sounds terrible. Is there another free version that i could use instead?

New AndroidMic UI

teamclouday commented 2 days ago

The choppy audio is most likely not caused by VB audio, if you have configured it to 2048 smp according to readme. It's probably caused by the internal buffering. Try to stop and start recording audio on the android device and see if it works.

Filippo-N commented 2 days ago

You were correct, it is not a VB audio problem. I have tweaked my setting under the AndroidMic control panel on the computer side, and it resolved the issue. This is what i had changed, and it now sounds great!

  1. Under the "Audio Device", I have increased the volume to "5.0"
  2. Under "Advanced", I have changed the "Desired Latency" to "300"

Btw...VB-Audio is not free, they have a licensing fee listed on their website if you want to use it in a business context. Are you aware of other comparable options that are truly completely free?

teamclouday commented 2 days ago

That's good to know. I'm not aware of any other options but I understand why they are not free. Virtual microphone on windows requires developing a windows driver. The developer has to pay a licensing fee to get the driver signed with a certificate, so that other users can install the driver on their system. It's probably a different story for linux and macos