Code Monkey home page Code Monkey logo

real-time-audio-denoiser's Introduction

audio_denoiser

Real-Time CNN based Audio Denoiser

Environmen Setup

Create the conda environment from the environment.yml file:

conda env create -f environment.yml

Datasets

Mozilla Clean Speech clips + Urbonsound 8K noise clips

Mozilla voice dataset: https://commonvoice.mozilla.org/en/datasets

UrbonSound8K dataset: https://urbansounddataset.weebly.com/urbansound8k.html

Datasets provided by DNS-challenge

Datasets provided by DNS-challenge: https://github.com/microsoft/DNS-Challenge/tree/icassp21/addrir/datasets

To download this dataset, follow the steps outline under https://github.com/microsoft/DNS-Challenge/tree/icassp21/addrir

For this dataset, can utilize the noisyspeech_synthesizer.py to produce (clean,noise,noisy) clips in .wav files. Note that you should change the noisyspeech_synthesizer.cfg to make sure the paths specified and the preprocessing parameters are set.

Process Dataset

Organize all the clean clips into one folder, and all the noise clips to on folder. Put the clean speech and noise directory paths in process_raw_dataset.py

Need to put the correct path for saving the preprocessed data for training

python process_raw_dataset.py

Train the Model

Modify paths to the locations where the training logs and models to be saved

python train_model.py

Evaluate trained pytorch model on test set

Generate specified number of noisy audio files or generate noisy audio files for all the clean speech files in test set. Then test the denoising effect on the generated noisy signals.

Put the path to store the pytorch model, generated noisy audios, denoised audios and evaluation metrics in test.py

python test.py

The objective metrics currently supported is SNR, SegSNR, CSIG, CBAK, COVL, PESQ, STOI; The values for each test clip will be stored in a csv file.

real-time-audio-denoiser's People

Contributors

kts707 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

real-time-audio-denoiser's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.