### Run local demo page with python app.py Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md Starts the local Gradio demo page for CleanMel. Requires the pretrained models to be downloaded first. After running, open http://localhost:7860 in a browser. ```bash python app.py ``` -------------------------------- ### Set up CleanMel environment with conda Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md Creates a Conda environment named CleanMel with Python 3.10.14, activates it, and installs the project dependencies from requirements.txt. ```bash conda create -n CleanMel python=3.10.14 conda activate CleanMel pip install -r requirements.txt ``` -------------------------------- ### Inference commands for CleanMel Source: https://github.com/audio-westlakeu/cleanmel/blob/main/pretrained/README.md Inference commands for CleanMel. Use `bash inference.sh , [huggingface]`. The `huggingface` argument downloads pretrained models from Hugging Face; omit it to use local models. Examples show offline and online inference with S size and mask/map variants. ```bash # FORMAT # bash inference.sh , [huggingface] # --------------------------------------- # Inference with pretrained models from huggingface # Offline example (offline_CleanMel_S_mask) cd shell bash inference.sh 0, offline S mask huggingface # Online example (online_CleanMel_S_map) bash inference.sh 0, online S map huggingface # --------------------------------------- # Inference with local models # Offline example (offline_CleanMel_S_mask) cd shell bash inference.sh 0, offline S mask # Online example (online_CleanMel_S_map) bash inference.sh 0, online S map ``` -------------------------------- ### Run CleanMel inference with inference.sh Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md Runs inference with pretrained models. Use the 'huggingface' argument to download models automatically; omit it to use local models. Modify speech_folder in inference.sh for custom input; results are saved to output_folder (default ./my_output). ```bash # Inference with pretrained models from huggingface ## Offline example (offline_CleanMel_S_mask) cd shell bash inference.sh 0, offline S mask huggingface ## Online example (online_CleanMel_S_map) bash inference.sh 0, online S map huggingface # Inference with local pretrained models cd shell bash inference.sh 0, offline S mask ## Online example (online_CleanMel_S_map) bash inference.sh 0, online S map ``` -------------------------------- ### Pretrained checkpoint directory structure Source: https://github.com/audio-westlakeu/cleanmel/blob/main/pretrained/README.md Directory structure for locally downloaded pretrained checkpoints. Place enhancement checkpoints in `./pretrained/enhancement/` and vocos checkpoints in `./pretrained/vocos/`. ```text pretrained/ ├── enhancement/ │ ├── offline_CleanMel_S_map.ckpt │ ├── offline_CleanMel_S_mask.ckpt │ ├── offline_CleanMel_L_map.ckpt │ ├── offline_CleanMel_L_mask.ckpt | ├── online_CleanMel_S_map.ckpt │ └── online_CleanMel_S_mask.ckpt └── vocos/ ├── vocos_offline.pt └── vocos_online.pt ``` -------------------------------- ### Generate synthetic training data with SPencn_NSdns_RIRreal Source: https://github.com/audio-westlakeu/cleanmel/blob/main/data_loader/README.md Run this command from the root directory to generate synthetic data for training. The script is data_loader.SPencn_NSdns_RIRreal. Hyperparameters can be modified via input arguments; refer to the main() function for details. ```bash # in root directory python -m data_loader.SPencn_NSdns_RIRreal ``` -------------------------------- ### Train CleanMel with train.sh Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md Trains the offline CleanMel S mask model on 4 GPUs (0,1,2,3) with default batch size 32. Configure datasets in ./config/dataset/train.yaml. ```bash # Offline training example (offline_CleanMel_S_mask) cd shell bash train.sh 0,1,2,3 offline S mask ``` -------------------------------- ### Pretrained model directory structure Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md Directory structure of the pretrained models. Enhancement checkpoints (offline_CleanMel_S/L_mask/map.ckpt) are available; Vocos vocoder files are downloaded from a Google Drive link. ```bash pretrained/ ├── enhancement/ │ ├── offline_CleanMel_S_map.ckpt │ ├── offline_CleanMel_S_mask.ckpt │ ├── online_CleanMel_S_map.ckpt | └── ... └── vocos/ ├── vocos_offline.pt └── vocos_online.pt ``` -------------------------------- ### Cite CleanMel paper with BibTeX Source: https://github.com/audio-westlakeu/cleanmel/blob/main/README.md BibTeX citation for the CleanMel paper published in IEEE Transactions on Audio, Speech and Language Processing (TASLP) in 2025. ```bibtex @ARTICLE{11097896, author={Shao, Nian and Zhou, Rui and Wang, Pengyu and Li, Xian and Fang, Ying and Yang, Yujie and Li, Xiaofei}, journal={IEEE Transactions on Audio, Speech and Language Processing}, title={CleanMel: Mel-Spectrogram Enhancement for Improving Both Speech Quality and ASR}, year={2025}, volume={33}, pages={3202-3214}, doi={10.1109/TASLPRO.2025.3592333}} } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.