Giter VIP home page Giter VIP logo

Comments (5)

mkckr0 avatar mkckr0 commented on May 21, 2024

Pinging each other from each end, the average latency is around 0.5ms (half a milisecond).

How do you ping phone? I test the ping delay is about 2~5ms.

Do delay of via WIFI and USB tethering both reach 350ms?

from audio-share.

Kamilkampfwagen-II avatar Kamilkampfwagen-II commented on May 21, 2024

How do you ping phone? I test the ping delay is about 2~5ms.

I do get the local IP address of the phone from the server logs when the phone is connected. Additionally it can also be gathered using termux with the ifconfig command.

On PC I use the ping command. It doesn't show sub 1ms values in Windows but it does on Linux (so on the phone)

Do delay of via WIFI and USB tethering both reach 350ms?

Here's a table:

Latency: USB Wi-Fi
Ping ~0.5ms 2~5ms
Audio ~350ms ~500ms

These values are pretty consistent even over long periods
The measurements in audio delay is pretty loose since I don't have a reliable method other than using the video I referenced. However even assuming a worst case 100ms error margin, the latency over USB is quite high.

from audio-share.

mkckr0 avatar mkckr0 commented on May 21, 2024

I test my delay is less than 50ms. The PCM data is transterred via UDP, so the network delay has already been shortened. Your network seems like normal, so we can exclude this factor.

There is no decompression or any other complicated jobs. It's just memory copy. The delay may be caused by the CPU performance and RAM R/W delay. You can use another PC or phone to test. I don't have better idea to figure it out.

from audio-share.

mkckr0 avatar mkckr0 commented on May 21, 2024

Your problem may be same as #14. You can use wav_recorder.exe to test if exists delay.
wav_recorder.zip
#14 (comment)

from audio-share.

mkckr0 avatar mkckr0 commented on May 21, 2024

Fix at #24.

from audio-share.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.