WalkieTalkie icon indicating copy to clipboard operation
WalkieTalkie copied to clipboard

Voice delay

Open labregowski opened this issue 6 years ago • 4 comments

Hi. I am experiencing a voice delay of about 1.5 to 2 seconds. Even on a conversation between 2 persons in a direct connection. Any ideas on how to solve this?

labregowski avatar May 07 '19 18:05 labregowski

Hi! Thank you for feedback. Current implementation transmit raw PCM audio blocks 0.5 seconds each, so on the transmitter side it takes 0.5 second to record, then some time to transmit. The transmission time depends on your WiFi capacity, which can be not always good. Soon i am going to reduce size of the transmission block and add audio compression to reduce WiFi usage.

js-labs avatar May 09 '19 08:05 js-labs

Hi. Thank you for your fast reply. Great to know the project is alive and kicking. I understand that but I am afraid that the lag is bigger than 0,5 seconds. I am using two Android phones connected in several ways (1: Router Wi-Fi 11ac ovr 5GHz, 2: WiFiDiret 3: Hotspot on one of the mobiles). In every case I get this 1.5 to 2 seconds delay. I also tried to reduce sample rate to 4000 from original 11024 but got no visible result. Best

labregowski avatar May 09 '19 10:05 labregowski

Yep, i noticed the same behavior sometimes. There is actually also a delay on the receiver side = (frame size)/2 on the first frame to avoid glitches if WiFi is not stable, so the minimum delay will be 0.5s + 0.25s. I still think the root of the issue is in the WiFi connection, going to investigate it to make it work better.

js-labs avatar May 09 '19 20:05 js-labs

Oh.Great. Sent you an email.

labregowski avatar May 09 '19 21:05 labregowski