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

Issues with Echo Cancellation #40

Open
yash-samespace opened this issue Nov 21, 2024 · 1 comment
Open

Issues with Echo Cancellation #40

yash-samespace opened this issue Nov 21, 2024 · 1 comment

Comments

@yash-samespace
Copy link

yash-samespace commented Nov 21, 2024

I’ve integrated this library into a Tauri-based Rust project that leverages WebRTC technology and I’m encountering issues with the echo cancellation feature.

Here are the details:

• Environment: I built the library on macOS using meson build, following the instructions in the repository’s README.
• Setup: I initialized the audio processor and connected process_capture_frame and process_render_frame to the audio input and output streams provided by CPAL (audio I/O library).
• Testing: After calling process_capture_frame(), I used get_stats() to monitor the performance. I observe that has_echo is set to true in certain cases, which suggests that echo detection is partially working. However, there is still an audible echo on the remote side, and in other cases, it seems that echo isn’t detected at all.

To clarify my understanding: is the expectation that the raw audio stream passed to process_capture_frame() is directly modified to filter out the echo? Or is there another step I may be overlooking in the echo cancellation process?

Any guidance you could provide would be greatly appreciated. Please let me know if you need additional information on my implementation.

Thank you for your work and support

@bschwind
Copy link
Member

Hi @yash-samespace ,

To clarify my understanding: is the expectation that the raw audio stream passed to process_capture_frame() is directly modified to filter out the echo?

Yes, it should be modifying the captured audio data in-place. Same with process_render_frame.

Have you been able to run any of the examples without issue? The karaoke example might be the most helpful in showing the expected usage of this library.

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