A Noise Cancellation System that is capable of precisely removing noise present in an audio signal using Python and Matplotlib, provided the noise has only one frequency. A song is created using a group of frequencies representing key strokes played on a piano. To this, a randomly generated frequency representing the noise is added. The system then searches for this noise by locating the frequency with the highest amplitude in the sound. Once identified, the noise is removed, resulting in the clean song. You’ll find graphs of the song with the noise added in both the time and frequency domains. By identifying the frequency with the highest amplitude, you can visually see the noise frequency. Additionally, a graph of the song after the identification and removal of the noise is provided.
-
Clone the Repository:
git clone https://github.com/yehiarasheed/Noise-Cancellation-System.git cd Noise-Cancellation-System
This command downloads a copy of the repository to your local machine and navigates into the project directory.
-
Install a Python IDE: You will need a Python IDE to run the project. The user personally used Spyder, but other IDEs like PyCharm or VS Code are also recommended.
-
Install Required Libraries: Ensure the following Python libraries are installed:
pip install numpy matplotlib
This project requires the following dependencies:
- Python IDE: Recommended IDEs include Spyder, PyCharm, or VS Code.
- numpy: For numerical computations.
- matplotlib: For plotting.
Ensure all required packages are installed and up to date to run the Python code in this project.