livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
229 stars 109 forks source link

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

Open obiwanzenobi opened 5 months ago

obiwanzenobi commented 5 months ago

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

davidzhao commented 5 months ago

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