Practical overview
When it fits
Use it when you want code and documented scripts for training or running a PyTorch speech-separation model on single-channel audio.
Who it is for
- Researchers studying recurrent neural networks for speech separation.
- Developers who want to train or run the provided model scripts.
- Practitioners exploring a starting point for single-channel audio-separation work.
Documented uses
- Prepare a file-to-audio-path list for training.
- Configure and launch Dual-Path-RNN training.
- Run the documented inference script for one or multiple audio files.
- Review an implementation that also provides a separate Conv-TasNet model path.
Requirements & limits
The repository is public, open source and licensed under Apache-2.0.
- Dual-Path-RNN and Conv-TasNet have distinct configuration, training and inference scripts.
- Inference requires editing default test-file and model parameters in the relevant Python script.
- The README links a pretrained Dual-Path-RNN model as well as WSJ0 dataset resources.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train the Dual-Path-RNN model
Prepare the documented file list and configuration, then start Dual-Path-RNN training.
Before you start
- Python and PyTorch
- Audio data and an SCP file containing filename and path entries
- A Dual_RNN training configuration
Steps
Run the command below to generate the SCP file.
python create_scp.pyEdit
config/Dual_RNN/train.ymlto set training and model parameters.From the repository root, run the command below.
python train_rnn.py --opt config/Dual_RNN/train.yml
Expected outcome
The repository's Dual-Path-RNN training script starts with the selected YAML configuration.
Guide limitations
- The README identifies WSJ0 as the dataset used for training, validation and testing.
- The guide documents the launch process, not a verified training run or a guaranteed result.
Run documented Dual-Path-RNN inference
Configure the provided script for one audio file or multiple audio files and invoke it.
Before you start
- Python and PyTorch
- The Dual-Path-RNN test script
- Test-file and model parameters set in the script
Steps
Edit the default test-file and model parameters in
test_dualrnn.py.For multiple audio files, run the command below.
python test_dualrnn.pyFor a single audio file, configure the corresponding parameters in
test_dualrnn_wav.pyand run the command below.python test_dualrnn_wav.py
Expected outcome
The selected Dual-Path-RNN inference script is invoked for the configured input type.
Guide limitations
- The README requires modifying the scripts' default parameters before inference.
- It does not document detailed output handling or a verified inference result.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 13 November 2026
- Original website title
- JusperLee/Dual-Path-RNN-Pytorch · Official homepage title · retained in its source language

