This is a simple noise (echo) cancellation program in Python that I have worked on…

This code has been tested and run on Ubuntu. The following is the procedure to set up pyaudio on Ubuntu

Next.

Create a new file freq_matched_noise.py using gedit or nano and paste the following code in it.