#2339 2025-12-28 22:27:42,265 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clon

27.9* Posted at: 6 hours ago 👁11

2025-12-28 22:27:42,265 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-0-1766932057.7302444.wav', 'ref_text': "It's okay, Avocado. I'll see if I can find it. It couldn't have gone very far."}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:27:44,165 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:27:44,211 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-1-1766932057.7302444.wav', 'ref_text': 'We found your squeak toy!'}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:27:45,594 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:27:45,642 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-2-1766932057.7302444.wav', 'ref_text': "I'd make everyone else happy if I jumped,
......
rans/tmp/17460/ed161715df/clone-11-1766932057.7302444.wav', 'ref_text': "It's not coming out."}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:00,795 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:00,826 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-12-1766932057.7302444.wav', 'ref_text': 'Nurse Finley, I need your help.'}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:02,462 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:02,492 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-13-1766932057.7302444.wav', 'ref_text': 'Yes, the operation was the complete,'}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:04,064 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:04,125 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-14-1766932057.7302444.wav', 'ref_text': "I couldn't have done it without my nurses."}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:05,674 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:05,735 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-15-1766932057.7302444.wav', 'ref_text': 'Maybe I can make my jumps a little bigger.'}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:07,272 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:07,303 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-16-1766932057.7302444.wav', 'ref_text': 'I feel fizzy, but in a good way.'}
Loaded as API: http://127.0.0.1:9880/
2025-12-28 22:28:08,751 - INFO - Starting call to 'videotrans.tts._cosyvoice.CosyVoice._item_task.._run', this is the 1st time calling it.
2025-12-28 22:28:08,783 - INFO - cosyvoice-tts data={'ref_wav': 'D:/Program Files/pyVideoTrans/tmp/17460/ed161715df/clone-17-1766932057.7302444.wav', 'ref_text': 'I want to jump even bigger!'}
Loaded as API: http://127.0.0.1:9880/
Traceback (most recent call last):
File "videotrans\tts\_cosyvoice.py", line 59, in _item_task_cosyvoice2
File "gradio_client\client.py", line 153, in init

self.config = self._get_config()

File "gradio_client\client.py", line 908, in _get_config

raise ValueError(f"Could not fetch config for {self.src}")

ValueError: Could not fetch config for http://127.0.0.1:9880/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 85, in run
File "videotrans\task\trans_create.py", line 501, in dubbing
File "videotrans\task\trans_create.py", line 786, in _tts
File "videotrans\tts\__init__.py", line 286, in run
File "videotrans\tts\_base.py", line 190, in run
File "videotrans\tts\_cosyvoice.py", line 155, 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\_cosyvoice.py", line 151, in _run
File "videotrans\tts\_cosyvoice.py", line 61, in _item_task_cosyvoice2
videotrans.configure._except.StopRetry: Could not fetch config for http://127.0.0.1:9880/
正在等待线程 PrepareVideo 结束...
正在等待线程 SpeechToText 结束...
Successfully killed ffmpeg processes using taskkill

1 Replies

从日志看,您在使用 CosyVoice 进行语音克隆配音时,软件在连续处理多句后,突然无法连接到本地的 CosyVoice 服务(http://127.0.0.1:9880/),导致任务失败。

核心原因:本地部署的 CosyVoice 服务可能因长时间高并发请求、内存/显存不足、或服务本身不稳定而崩溃或失去响应。

解决方案

  1. 重启 CosyVoice 服务

    • 首先,请确保您的 CosyVoice 服务已正确启动并运行在 http://127.0.0.1:9880/
    • 如果服务已关闭,请重新启动它。
  2. 降低 pyVideoTrans 的并发请求压力

    • 在 pyVideoTrans 主界面,点击菜单栏的 工具 -> 选项 -> 高级选项
    • “配音调整” 区域,找到 “同时配音字幕数”
    • 将数值从默认的较高值(例如 10)降低到 1 或 2。这能显著减少对本地 CosyVoice 服务的瞬时压力,避免其崩溃。
  3. 增加请求间隔

    • 在同一 “配音调整” 区域,找到 “配音后暂停时间/秒”
    • 适当增加此数值(例如设为 2 或 3),在每句配音之间插入短暂停顿,给服务喘息时间。
  4. 检查 CosyVoice 服务日志

    • 查看您启动 CosyVoice 服务的命令行窗口或日志文件,确认服务是否报错(如显存不足 CUDA Out Of Memory)。如果存在显存问题,您可能需要:

      • 使用更小的 CosyVoice 模型。
      • 在启动 CosyVoice 时添加 --half 参数使用半精度以节省显存。
      • 确保没有其他大型程序占用显存。
  5. 重新执行任务

    • 完成上述调整后,在 pyVideoTrans 主界面,务必勾选“清理已生成”,然后重新开始翻译任务。

如果问题依旧,请提供 CosyVoice 服务端的完整错误日志以便进一步分析。

有用的文档链接:CosyVoice

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