ltnghia's picture
Add files using upload-large-folder tool
bfb21c3 verified
|
raw
history blame
2.36 kB

Noise Suppression Net (NSNet) baseline inference script

  • As a baseline for Interspeech 2020 Deep Noise Suppression challenge, we will use the recently developed SE method based on Recurrent Neural Network (RNN). For ease of reference, we will call this method as Noise Suppression Net (NSNet). The details about this method can be found in the published paper
  • This method uses log power spectra as input to predict the enhancement gain per frame using a learning machine based on Gated Recurrent Units (GRU) and fully connected layers. Please refer to the paper for more details of the method.
  • NSNet is computationally efficient. It only takes 0.16ms to enhance a 20ms frame on an Intel quad core i5 machine using the ONNX run time v1.1 .

Prerequisites

  • Python 3.0 and above
  • pysoundfile (pip install pysoundfile)
  • onnxruntime (pip install onnxruntime)

Files:

  • nsnet_eval_local.py - Main script that calls onnx.py
  • onnx.py - Frame based inference
  • audiolib.py - Required audio libraries for inference
  • nsnet-baseline-dnschallenge.onnx - Trained NSNet ONNX model used for inference

Usage:

From the NSNet-baseline directory, run nsnet_eval_local.py with the following required arguments:

  • --noisyspeechdir "Specify the path to noisy speech files that you want to enhance"
  • --enhanceddir "Specify the path to a directory where you want to store the enhanced clips"
  • --modelpath "Specify the path to the onnx model provided"

Use default values for the rest. Run to enhance the clips.

Citation:

The baseline NSNet noise suppression:

@INPROCEEDINGS{9054254, author={Y. {Xia} and S. {Braun} and C. K. A. {Reddy} 
and H. {Dubey} and R. {Cutler} and I. {Tashev}}, 
booktitle={ICASSP 2020 - 2020 IEEE International Conference on Acoustics, 
Speech and Signal Processing (ICASSP)}, 
title={Weighted Speech Distortion Losses for Neural-Network-Based Real-Time Speech Enhancement}, 
year={2020}, volume={}, number={}, pages={871-875},}

Y. Xia, S. Braun, C. K. A. Reddy, H. Dubey, R. Cutler and I. Tashev, "Weighted Speech Distortion Losses for Neural-Network-Based Real-Time Speech Enhancement," ICASSP 2020 - 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain, 2020, pp. 871-875.