bosukeme / remove_background_noise

0 stars 0 forks source link

remove_background_noise

Table of Contents

Introduction

Noise reduction in audio processing involves the removal or reduction of unwanted background noise or interference from an audio signal. You can achieve noise reduction in Python using various libraries and techniques.

The remove_background_noise is a Flask application that reduces noise from an input recording file and returns several reduced noise audio files (wav) from several noise reducing methods

Sources:


Technologies used

Getting Started

To run this web application on your local machine, follow the steps below:

Prerequisites

Before getting started, ensure that you have the following software installed on your machine:

Installation

Step-by-step guide on how to install the project and its dependencies.

  1. Clone the repository to your local machine using Git:
    HTTPS
git clone https://github.com/bosukeme/remove_background_noise.git

SSH

git clone git@github.com:bosukeme/remove_background_noise.git


  1. Navigate to the project directory
cd remove_background_noice

Before you start the application, you need to set up an environment variables. Here's how you can do it:

CLOUD_NAME=
API_KEY=
API_SECRET=

Create a file called .env file at the root folder of the project with the environmental variables above.

You can create your cloudinary key and secret by signing up on https://cloudinary.com/

  1. Install the project dependencies contained inside the requirements.txt file using PIP(Package Manager):
pip install -r requirements.txt

Running the web application

Once you have installed the dependencies, you can start the web application using

Linux, Windows "WSL" , MAC

gunicorn -c "gunicorn_config.py" "wsgi:app"

Windows "CMD", "POWERSHELL"

python run.py

Running Tests

Once you have installed the dependencies, and your flask app is running, you can run test within the directory

pytest

Run docker

navigate to the root directory

docker-compose up --build

To stop the containers

docker-compose stop

API documentation

Access API documentation via Swagger UI using the link below after starting up the application

http://localhost:8001/api/v1.0/remove-noise/doc/

Usage

License

This project is licensed under the MIT License.

Authors

Contributors names and contact info

Ukeme Wilson