Skip to content

A fork of RNNoise with non-clashing symbols, the original tried and tested model, CMake support, and other optimizations

License

Notifications You must be signed in to change notification settings

mumble-voip/ReNameNoise

Repository files navigation

ReNameNoise

ReNameNoise - a fork of RNNoise - is a noise suppression library based on a recurrent neural network.

A description of the algorithm is provided in the following paper:

J.-M. Valin, A Hybrid DSP/Deep Learning Approach to Real-Time Full-Band Speech
Enhancement, Proceedings of IEEE Multimedia Signal Processing (MMSP) Workshop,
arXiv:1709.08243, 2018.
https://arxiv.org/pdf/1709.08243.pdf

An interactive demo is available at: https://jmvalin.ca/demo/rnnoise/

Prerequisites

To build the library with the existing, pre-trained network data you will need to install the following packages:

  • build-essential
  • cmake

Build

To compile, open a terminal in the repository root directory and type:

cmake .
make

To compile the library only, without the demo executable:

cmake -DRENAMENOISE_DEMO_EXECUTABLE=OFF .
make

Usage

While it is meant to be used as a library, a simple command-line tool is provided as an example. It operates on RAW 16-bit (machine endian) mono PCM files sampled at 48 kHz. It can be used as:

./examples/renamenoise_demo <noisy speech> <output denoised>

The output is also a 16-bit raw PCM file.d

Training

Training is not necessary to use the library as presented in this repository.

However, if you want to train the network on your own samples you need to follow these steps:

cd src ; ./compile.sh

./denoise_training signal.raw noise.raw count > training.f32

# (note the matrix size and replace 500000 87 below)

cd training ; ./bin2hdf5.py ../src/training.f32 500000 87 training.h5

./rnn_train.py

./dump_rnn.py weights.hdf5 ../src/rnn_data.c ../src/rnn_data.h

About

A fork of RNNoise with non-clashing symbols, the original tried and tested model, CMake support, and other optimizations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages