Views
No views yet
| Release | Test-Set SI-SNRi | Test-Set SDRi |
|---|---|---|
| 09-03-21 | 22.4dB | 22.6dB |
pip install speechbrain1from speechbrain.inference.separation import SepformerSeparation as separator
2import torchaudio
3
4model = separator.from_hparams(source="speechbrain/sepformer-wsj02mix", savedir='pretrained_models/sepformer-wsj02mix')
5
6# for custom file, change path
7est_sources = model.separate_file(path='speechbrain/sepformer-wsj02mix/test_mixture.wav')
8
9torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
10torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)run_opts={"device":"cuda"} when calling the from_hparams method.git clone https://github.com/speechbrain/speechbrain/cd speechbrain
pip install -r requirements.txt
pip install -e .cd recipes/WSJ0Mix/separation
python train.py hparams/sepformer.yaml --data_folder=your_data_folder1@misc{speechbrain,
2 title={{SpeechBrain}: A General-Purpose Speech Toolkit},
3 author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
4 year={2021},
5 eprint={2106.04624},
6 archivePrefix={arXiv},
7 primaryClass={eess.AS},
8 note={arXiv:2106.04624}
9}1@inproceedings{subakan2021attention,
2 title={Attention is All You Need in Speech Separation},
3 author={Cem Subakan and Mirco Ravanelli and Samuele Cornell and Mirko Bronzi and Jianyuan Zhong},
4 year={2021},
5 booktitle={ICASSP 2021}
6}