yeyupiaoling / PaddlePaddle-DeepSpeech

基于PaddlePaddle实现的语音识别,中文语音识别。项目完善,识别效果好。支持Windows,Linux下训练和预测,支持Nvidia Jetson开发板预测。
https://yeyupiaoling.blog.csdn.net/article/details/102904306
Apache License 2.0
683 stars 145 forks source link

python generate_audio.py运行报错 parakeet.frontend.cn_frontend 找不到 #104

Closed conquer66666 closed 3 years ago

conquer66666 commented 3 years ago

DeprecationWarning: np.complex is a deprecated alias for the builtin complex. To silence this warning, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, [nltk_data] Error loading averaged_perceptron_tagger: <urlopen error [nltk_data] [Errno 111] Connection refused> [nltk_data] Error loading cmudict: <urlopen error [Errno 111] [nltk_data] Connection refused> Traceback (most recent call last): File "/home/user/test/PaddlePaddle-DeepSpeech/tools/generate_audio/generate_audio.py", line 19, in from frontend import Frontend File "/home/user/test/PaddlePaddle-DeepSpeech/tools/generate_audio/frontend.py", line 8, in from parakeet.frontend.cn_frontend import Frontend as cnFrontend ModuleNotFoundError: No module named 'parakeet.frontend.cn_frontend'

conquer66666 commented 3 years ago

源项目parakeet的文件名称修改了,需要改一下包的名字 项目tools/frontend.py需要修改如下 from parakeet.frontend.cn_frontend import Frontend as cnFrontend ---> from parakeet.frontend.zh_frontend import Frontend as cnFrontend

另外文档中还需下载 https://paddlespeech.bj.bcebos.com/Parakeet/parallel_wavegan_baker_ckpt_0.4.zip

有空请调整一下吧:)

yeyupiaoling commented 3 years ago

parakeet结构调整了?

conquer66666 commented 3 years ago

结构没调整,就是有个文件之前叫cn_frontend.py改了个名字,变成zh_frontend了

yeyupiaoling commented 3 years ago

好的,谢谢提醒

yJun-Chen commented 2 years ago

我在使用fastspeech2_baker 的时候出现了

ModuleNotFoundError: No module named 'parakeet'

我不知道是需要安装parakeet 还是paddle-parakeet 我首先安装了parakeet,但是显示parakeet是python2的,使用python3无法安装 然后我安装了paddle-parakeet

再接着一下,出现

  File "/root/.paddlehub/modules/fastspeech2_baker/module.py", line 24, in <module>
    from parakeet.frontend.zh_frontend import Frontend
ModuleNotFoundError: No module named 'parakeet.frontend.zh_frontend'

请问parakeet.frontend.zh_frontend现在是又更改了么?