#1345 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

120.240* Posted at: 14 hours ago 👁7

网络连接失败:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 267, in run
File "videotrans\tts\_base.py", line 177, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_cosyvoice.py", line 151, in _run
File "videotrans\tts\_cosyvoice.py", line 63, in _item_task_cosyvoice2
File "gradio_client\client.py", line 478, in predict

).result()

File "gradio_client\client.py", line 1539, in result

return super().result(timeout=timeout)

File "concurrent\futures\_base.py", line 446, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "gradio_client\client.py", line 1159, in _inner

predictions = self.process_predictions(*predictions)

File "gradio_client\client.py", line 1325, in process_predictions

predictions = self.download_files(*predictions)

File "gradio_client\client.py", line 1338, in download_files

data_ = utils.traverse(data_, self._download_file, utils.is_file_obj)

File "gradio_client\utils.py", line 1114, in traverse

new_obj.append(traverse(item, func, is_root))

File "gradio_client\utils.py", line 1105, in traverse

return func(json_obj)

File "gradio_client\client.py", line 1421, in _download_file

response.raise_for_status()

File "httpx\_models.py", line 829, in raise_for_status
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'http://127.0.0.1:9980/gradio_api/file=b716b0c5-9c93-49c4-b5da-b26a263fb7e3/1450818389776/39/playlist.m3u8'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:F:/videotrans_3.83_Green

1 Replies

这个错误是由于 CosyVoice 配音时网络连接失败导致的 403 禁止访问错误。请按以下步骤解决:

  1. 检查 CosyVoice 服务状态:确保 CosyVoice 本地服务正在运行且端口 9980 可正常访问
  2. 降低并发请求:在菜单栏选择 工具/选项 -> 高级选项,在"配音调整"区域:

    • 将"同时配音字幕数"改为 1
    • 将"配音后暂停时间/秒"设为 3-5
  3. 检查防火墙设置:确保防火墙没有阻止 pyVideoTrans 或 CosyVoice 的网络连接
  4. 重启软件:完全关闭 pyVideoTrans 和 CosyVoice 服务,然后重新启动

如果问题依旧存在,建议暂时切换到其他配音渠道,如 Edge-TTS 或 Azure 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