Code Monkey home page Code Monkey logo

rsrgan's Introduction

Robust Speech Recognition Using Generative Adversarial Networks (GAN)

Introduction

This is the repository of the RSRGAN project. Our original paper can be found here.

In this work we investigate the use of generative adversarial networks (GANs) in speech dereverberation for robust speech recognition.

Our RIRs were from here, and we used KALDI to simulate reverberant speech.

All the project was developed with TensorFlow and KALDI and our project was based on SEGAN.

Dependencies

  • Python 2.7
  • TensorFlow 1.4.0
  • KALDI

Date preparation and GAN training

  1. You should prepare your data according KALDI format as following:

    data
        |- wav.scp
        |- ...

    then, runing the following command to simulate reverbrant data.

    # remember to change the data path in run.sh
    bash reverberate/run.sh
  2. After this step, you can get reverbrant waves and their counterparts, i.e., the clean speeches. Using KALDI command compute-spectrogram-feats to get log-power spectrum (LPS) features as your inputs. Using compute-mfcc-feats to get MFCC feature as your labels. In our experiments, we used 257-dim LPS and 40-dim MFCC without delta and delta-delta.

    • LPS: hamming window
    • MFCC: default config file in KALDI WSJ recipe (conf/mfcc_hires.conf)
  3. Training GAN

    # shell file name  with 'placeholder' is the script that training 'G' and 'D' using the same min-batch's data.
    # remeber to change the data path in shell files
    # you can also try other shell files to reproduce the other experimental results. (E.g., DNN, RCED, LSTM)
    bash run_gan_rnn_placeholder.sh

ASR decoding

  1. You should have a well-trained ASR model and make sure your AM's input feature is the same with GAN generator's output feature.
  2. Then you can use any kind of decoder to decode enhanced feature.

Reference

If the code of this repository was useful for your research, please cite our work:

@article{ke2018gan,
  title     = {Investigating Generative Adversarial Networks based Speech Dereverberation for Robust Speech Recognition},
  author    = {Ke, Wang and Junbo, Zhang and Sining, Sun and Yujun, Wang and Fei Xiang, and Lei, Xie},
  journal   = {arXiv preprint arXiv:1803.10132},
  year      = {2018},
}

Contact

e-mail: [email protected]

rsrgan's People

Contributors

linan2 avatar

Watchers

 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.