#1211 网络连接失败:Traceback (most recent call last): File "videotrans\util\ListenVoice.py", line 18, in run File "videotrans\tts\

178.249* Posted at: 2 days ago 👁24

网络连接失败:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 264, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_gptsovits.py", line 115, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_gptsovits.py", line 99, in _run
videotrans.configure._except.StopRetry: GPT-SoVITS error-1:{'message': 'tts failed', 'Exception': "\n


















\n Resource \x1b[93maveraged_perceptron_tagger_eng\x1b[0m not found.\n Please use the NLTK Downloader to obtain the resource:\n\n \x1b[31m>>> import nltk\n >>> nltk.download('averaged_perceptron_tagger_eng')\n \x1b[0m\n For more information see: https://www.nltk.org/data.html\n\n Attempted to load \x1b[93mtaggers/averaged_perceptron_tagger_eng\x1b[0m\n\n Searched in:\n - 'C:\\Users\\kang/nltk_data'\n - 'D:\\ProgramData\\anaconda3\\envs\\gpt\\nltk_data'\n - 'D:\\ProgramData\\anaconda3\\envs\\gpt\\share\\nltk_data'\n - 'D:\\ProgramData\\anaconda3\\envs\\gpt\\lib\\nltk_data'\n - 'C:\\Users\\kang\\AppData\\Roaming\\nltk_data'\n - 'C:\\nltk_data'\n - 'D:\\nltk_data'\n - 'E:\\nltk_data'\n
















\n"}


=
system:Windows-10-10.0.26100-SP0
version:v3.82
frozen:True
language:zh

1 Replies

这个错误是因为在使用 GPT-SoVITS 配音功能时缺少必要的 NLTK 语言模型文件。请按以下步骤解决:

  1. 手动下载 NLTK 数据包:

    • 打开命令提示符(CMD)
    • 依次执行以下两条命令:

      python -c "import nltk; nltk.download('averaged_perceptron_tagger')"
      python -c "import nltk; nltk.download('punkt')"
  2. 设置 NLTK 数据路径(可选):

    • 如果上述命令执行失败,可以手动设置数据路径:

      python -c "import nltk; nltk.download('averaged_perceptron_tagger', download_dir='C:/nltk_data')"
  3. 重启软件:

    • 完成下载后,重新启动 pyVideoTrans 软件。
  4. 临时解决方案:

    • 如果问题持续,可以暂时切换到其他配音渠道,如 Edge-TTS 或 OpenAI TTS。

如果以上步骤仍无法解决问题,请检查网络连接是否正常,或者尝试在能访问外网的环境下执行下载命令。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions