Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensitive to noise #62

Open
Gpwner opened this issue Feb 17, 2025 · 2 comments
Open

Sensitive to noise #62

Gpwner opened this issue Feb 17, 2025 · 2 comments

Comments

@Gpwner
Copy link

Gpwner commented Feb 17, 2025

The latest version seems to be very sensitive to noise. What modifications can be made to reduce its sensitivity to noise?Thanks

@freddyaboulton
Copy link
Owner

Hi @Gpwner - can you share the code and the versions you are comparing against? Will help to pinpoint the issues.

BTW, are you setting track_constraints ?

These are the defaults and noiseSuppression is set to true

  track_constraints = {
      "echoCancellation": True,
      "noiseSuppression": {"exact": True},
      "autoGainControl": {"exact": True},
      "sampleRate": {"ideal": 24000},
      "sampleSize": {"ideal": 16},
      "channelCount": {"exact": 1},
  }

@Gpwner
Copy link
Author

Gpwner commented Feb 22, 2025

@freddyaboulton here are my code:

  audio = WebRTC(
      label="Stream",
      rtc_configuration=rtc_configuration,
      mode="send-receive",
      modality="audio"},
  )

and the gradio-rtc:

Name: gradio_webrtc
Version: 0.0.29
Summary: Stream images in realtime with webrtc
Home-page: 
Author: 
Author-email: Freddy Boulton <[email protected]>
License: 
Location: /home/user/anaconda3/envs/swift-rt/lib/python3.10/site-packages
Requires: aiortc, gradio
Required-by: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants