Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 1.71 KB

README.md

File metadata and controls

86 lines (57 loc) · 1.71 KB

Complex Neural Beamformer

This repository contains python/tensorflow code to reproduce the experiments presented in our paper Deep Complex-valued Neural Beamformers.

Requirements

The data loader uses the 'pyroomacoustics' package to generate artifical RIRs. Install with:

pip install pyroomacoustics

And the 'soundfile' package to read/write wavs:

pip install soundfile

To add your speech database, edit the 'path' keys in the configuration file:

nano -w cnbf.json

Training

To train the model using real-valued layers, use:

cd experiments
python cnbf_real.py

To train the model using complex-valued layers, use:

cd experiments
python cnbf_complex.py

During the first run, a cache file with pre-calculated RIRs will be generated. This may take a while.

Inference

For testing, use:

cd experiments
python cnbf_complex.py --predict

This will generate a single prediction, using a mixture with two sources from random wav files from the test set. The noisy and enhanced wavs will be written in the 'predictions/' folder. Spectrograms showing the desired/unwanted speech sources are generated before and after beamforming:

predicitons

Citation

Please cite our work as

@INPROCEEDINGS{8683517,
  author={L. {Pfeifenberger} and M. {Zöhrer} and F. {Pernkopf}},
  booktitle={ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)}, 
  title={Deep Complex-valued Neural Beamformers}, 
  year={2019},
  volume={},
  number={},
  pages={2902-2906},
}