Code Monkey home page Code Monkey logo

aecnn_for_speech_enhancement's Introduction

A New Framework for CNN-Based Speech Enhancement in the Time Domain

This repository contains the unofficial pytorch lightning implementation of the model described in the paper A New Framework for CNN-Based Speech Enhancement in the Time Domain by Ashutosh Pandey and Deliang Wang.

Requirements

To run this code, you will need:

  • pytorch_lightning==2.0.0
  • PyYAML==6.0
  • torch==2.0.0
  • torchaudio==2.0.0

To automatically install these libraries, run the following command:

pip install -r requirements.txt

Usage

To run the code on your own machine, follow these steps:

  1. Open the 'config.yaml' file and modify the file paths (and hyperparameters as needed).
  2. Run the 'main.py' file to start training the model.

The trained model will be saved as ckpt file in 'logger' directory. You can then use the trained model to perform real-time speech frequency bandwidth extension on your own audio wav file by running the 'inference.py' file as

python inference.py --mode "wav" --path_ckpt <path of checkpoint file> --path_in <path of wav file>

This repository also support directory-level inference, where the inference is performed on a directory consisting of wav files. You can use the following example to perform directory-level inference,

python inference.py --mode "dir" --path_ckpt <path of checkpoint file> --path_in <path of directory that contains input wave files> --path_out <path of directory that output files will be saved>

Note

  • 2023.5.1 This code now supports Distributed Data Parallel (DDP) training!
  • 2023.4.28 The code has been modified to be compatible with PyTorch Lightning 2.0 environment! It includes support for inference as well.
  • Feel free to provide issues!

Citation

@ARTICLE{8701652,
  author={Pandey, Ashutosh and Wang, DeLiang},
  journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing}, 
  title={A New Framework for CNN-Based Speech Enhancement in the Time Domain}, 
  year={2019},
  volume={27},
  number={7},
  pages={1179-1188},
  doi={10.1109/TASLP.2019.2913512}}

aecnn_for_speech_enhancement's People

Contributors

zeroone-universe 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.