Hello, we are trying to use the noise reduction an...
# sdk-native
b
Hello, we are trying to use the noise reduction and echo cancellation features of LiveKit (not the AI ones) in our Flutter application. The target platform is Linux. Our configuration looks like this:
RoomOptions(
defaultAudioOutputOptions: AudioOutputOptions(speakerOn: true),
defaultAudioCaptureOptions: AudioCaptureOptions(
echoCancellation: true,
noiseSuppression: true,
),
),
It seems both echo cancellation and noise suppression do not seem to have any effect during calls. Could you please confirm if these features are currently supported on Linux Flutter, and if any additional setup or dependencies are required to make them work? Thank you 🙂
r
Yes, it should be working
b
Thanks! Any chance to debug why we don't get the expected result? I mean, from logs or from Linux (we are using Ubuntu)
r
I guess first question is. You are using LiveKit cloud right?
b
yes it is not self hosted, we are subscribed
r
Then yes it should work. Are you getting some errors or something? How do you know it is not working?
b
because we are getting echo back unfortunately, no difference with or without the option enabled
is there a way to check why the EC/NR is actually "triggered" ? Maybe some additional log we can enable, or some linux log...We want to understand if the problem is caused by livekit/webrtc or Linux somehow, or even hardware.
two questions also: 1. is livekit using a custom implementation of echo cancellation or using Webrtc default one 2. can also we schedule a call? Would be easier for us to show our problem
r
Echo cancelation is based on the device being used. If the device does not have an echo canceler than you will hear echo when the speaker output feeds back into the microphone. I've seen some issues with lower end android devices and a poor echo canceler implementation.
b
thanks for the clarification. So the echo cancellation is (simplifying) just toggle the hardware chip on / off ? No software algorithm noise cancellation?
r
There is software noisce cancelation but echo canceler is on the device
b
so as far as I understand, toggling echo cancellation from livekit toggles the physical device feature on/off ?
t
We have found that this was due to a misconfiguration on the libwebrtc side. We have now made a fix for this, and should be released in the latest version. To test this now, you can add
dependency_overrides
in
pubspec.yaml
and set to
flutter_webrtc: 1.2.1
.
b
Thank you, we will test and let you know