speaker-recognition-pytorch icon indicating copy to clipboard operation
speaker-recognition-pytorch copied to clipboard

运行报错,求助!

Open LittleMaWen opened this issue 5 years ago • 1 comments

您好,下载好TIMIT完整数据集后,请问是否应该先python dvector_create.py,将音频文件.WAV转换为标准格式,然后再python data_preprocess.py,特征提取得到音频的.npy文件?我在运行dvector_create.py时,报错utils.py中的from constants import c,得到结果ModuleNotFoundError: No module named 'constants',然后我conda install constants,又报错ImportError: cannot import name 'c',请问该如何解决呢?

LittleMaWen avatar Jan 09 '20 08:01 LittleMaWen

您好,下载好TIMIT完整数据集后,请问是否应该先python dvector_create.py,将音频文件.WAV转换为标准格式,然后再python data_preprocess.py,特征提取得到音频的.npy文件?我在运行dvector_create.py时,报错utils.py中的from constants import c,得到结果ModuleNotFoundError: No module named 'constants',然后我conda install constants,又报错ImportError: cannot import name 'c',请问该如何解决呢?

Maybe you can create "constants.py" and declare the constants you need.

Estia-xmy avatar Oct 05 '20 11:10 Estia-xmy