Wendison / VQMIVC

Official implementation of VQMIVC: One-shot (any-to-any) Voice Conversion @ Interspeech 2021 + Online playing demo!
MIT License
334 stars 55 forks source link

How to solve this problem? #33

Open Hu-chengyang opened 2 years ago

Hu-chengyang commented 2 years ago

Dear PHD: I try to train a vocoder, and I have installed parallelwavegan,and I run the command: run.sh,however it came out with the traceback: Traceback (most recent call last): File "/home/liyp/anaconda3/envs/xll/bin/parallel-wavegan-preprocess", line 11, in load_entry_point('parallel-wavegan', 'console_scripts', 'parallel-wavegan-preprocess')() File "/data2/hcy/VQMIVC-main/vocoder/ParallelWaveGAN/parallel_wavegan/bin/preprocess.py", line 186, in main ), f"{utt_id} seems to have a different sampling rate."

I find that the sampling rate is 24000hz,however the sampling rate of the VQMIVC is 16000,could you tell me how to modify the sampling rate?

Wendison commented 2 years ago

Hi, you can use sox or ffmpeg to change the sampling rate of wavs, e.g., sox {original_24kHz.wav} -r 16000 {converted.wav}

Hu-chengyang commented 2 years ago

Thank you and I have successfully run the parallelwavegan,however,in config.yml,my distributed is false and the distributed in yours is true,can you tell me how to modify the distributed?

Hu-chengyang commented 2 years ago

Do it mean if I do not install apex so that I will not be able to use distributed training, and the distributed in the config.yml will be false?