GithubHelp home page GithubHelp logo

gootaoo / rnnoise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sysprog21/rnnoise

0.0 0.0 0.0 4.17 MB

A noise suppression library based on a recurrent neural network

License: BSD 3-Clause "New" or "Revised" License

C++ 2.41% Python 1.64% C 95.70% Makefile 0.24%

rnnoise's Introduction

RNNoise

A noise suppression library based on a recurrent neural network.

Build

Prerequisite

  • macOS: brew install libsndfile libsoxr sox
  • Debian/Ubuntu: sudo apt install libsndfile1-dev libsoxr-dev libsox-dev

To compile, just type:

make

Sample noisy file sample.wav was included, and you can run make check to generate the processed one, clean.wav.

Test

While it is meant to be used as a library, a simple command-line tool is provided as an example. It can be used as:

examples/rnnoise_demo sample.wav output.wav

Training

Audio feature extract

Build audio feature extraction tool

make src/denoise_training

Use the tool denoise_training to get the audio feature array from speech and noise audio clip

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

(note the matrix size and replace 500000 87 below)

RNN model traning

Pick feature array to "training" dir and go through the training process.

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

Training process will generate the RNN model weight code file (default is rnn_data.c) and layer definition header file (default is rnn_data.h). They can be used to refresh the src/rnn_data.c, src/rnn_data.h and rebuild the rnnoise library and/or examples.

License

rnnoise is freely redistributable under the revised BSD license. Use of this source code is governed by a BSD-style license that can be found in the COPYING file.

rnnoise's People

Contributors

jmvalin avatar jserv avatar sleepybishop avatar gregorr avatar janx2 avatar pyu1538 avatar wegylexy avatar foxhoundsk avatar tangshi avatar

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.