client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug] Echo canceling doesn't work after moment of silence during the call

Open obiwanzenobi opened this issue 1 year ago • 1 comments

Describe the bug Tested on windows and macos. Echo canceling works perfectly fine until a moment of silence (random length). Then there is no echo canceling at all. Muting/unmuting fixes it until the next "silent" moment.

To Reproduce Use 2 clients with example app.

Client A will be the echo "producer" - you have to use speakers and a microphone very close to it. Client B will be the client that will hear his own echo. Best to use headphones with microphone here. Use (wear) this setup during this test.

  1. Connect them both to the same room with mic enabled.
  2. Use Client B headphones and mic - no echo at all - perfect sound, you should not hear yourself.
  3. Wait a longer moment in silence (30s)
  4. Try to do the same as in 2. - you will hear yourself in the headphones.
  5. mute Client A.
  6. Unmute Client A
  7. Do 2. again. You will not hear yourself.

Expected behavior number 4. Will produce the same result as 2.

Platform information

  • Flutter version: 3.16.8
  • Plugin version: 1.5.6
  • Flutter target OS: Windows/Mac
  • Flutter target OS version: win11, macos 14.2.1
  • Flutter console log: nothing suspicious here

obiwanzenobi avatar Jan 25 '24 20:01 obiwanzenobi

different platforms, but possibly related to https://github.com/livekit/client-sdk-android/pull/363

davidzhao avatar Jan 28 '24 23:01 davidzhao