#2393 TaskCfg(cache_folder='D:/TTS/win-pyvideotrans-v3.92/tmp/11000/5fd4e068c1', target_dir='D:/TTS/win-pyvideotrans-v3.92/out

104.28* Posted at: 2 hours ago 👁7

配音阶段出错 [ChatterBox TTS] 500 Server Error: INTERNAL SERVER ERROR for url: http://127.0.0.1:5093/v2/audio/speech_with_prompt
Traceback (most recent call last):
File "videotrans\task\job.py", line 224, in run
File "videotrans\task\_dubbing.py", line 48, in dubbing
File "videotrans\task\_dubbing.py", line 217, in _tts
File "videotrans\tts\__init__.py", line 286, in run
File "videotrans\tts\_base.py", line 190, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_chatterbox.py", line 46, in _run
File "videotrans\tts\_chatterbox.py", line 102, in _item_task_clone
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://127.0.0.1:5093/v2/audio/speech_with_prompt

TaskCfg(cache_folder='D:/TTS/win-pyvideotrans-v3.92/tmp/11000/5fd4e068c1', target_dir='D:/TTS/win-pyvideotrans-v3.92/output/tts', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code='zh-cn', source_sub=None, target_sub='D:/Users/Administrator/Documents/100 字幕/0025.zh-CN.srt', source_wav=None, source_wav_output=None, target_wav='D:/TTS/win-pyvideotrans-v3.92/output/tts/0025.zh-CN.m4a', target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='0025.zh-CN', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='yingyufanben.wav', copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=12, recogn_type=None, model_name=None, split_type=0, voice_autorate=True, video_autorate=False, cuda=False, name='D:/Users/Administrator/Documents/100 字幕/0025.zh-CN.srt', basename='0025.zh-CN.srt', ext='srt', dirname='D:/Users/Administrator/Documents/100 字幕', shound_del_name=None, uuid='5fd4e068c1', remove_silent_mid=False, align_sub_audio=False, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/TTS/win-pyvideotrans-v3.92

1 Replies

该错误表明本地部署的 ChatterBox TTS 服务(运行在 http://127.0.0.1:5093)在处理请求时发生了内部服务器错误(500)。这通常是 ChatterBox 服务端本身的问题,而非 pyVideoTrans 客户端配置错误。

请按以下步骤排查:

  1. 确认 ChatterBox 服务状态

    • 检查 ChatterBox TTS 服务是否已成功启动并正在运行。确保其服务端口(默认为 5093)未被其他程序占用。
    • 查看 ChatterBox 服务自身的日志或控制台输出,通常会有更详细的错误信息,例如模型加载失败、显存不足、或处理特定文本时出错。
  2. 检查参考音频文件

    • 错误信息中 voice_role='yingyufanben.wav' 表明您使用了语音克隆功能,并指定了参考音频文件。
    • 请确认该文件 yingyufanben.wav 是否存在,路径是否正确,并且是一个有效的、清晰的 WAV 格式音频文件(建议为单声道、16kHz 采样率)。损坏或不兼容的音频文件会导致服务端处理失败。
  3. 简化请求测试

    • 在 pyVideoTrans 的“工具箱” -> “试听配音”功能中,使用同一个 ChatterBox 配置和参考音频,尝试合成一句非常简短的文本(例如“你好”)。如果同样失败,则基本确定是服务端或参考音频问题。
    • 如果简短文本成功,但长文本失败,则可能是服务端在处理长文本时存在 bug 或资源(如显存)不足。
  4. 重启服务

    • 尝试完全关闭并重新启动 ChatterBox TTS 服务。有时服务可能因临时状态问题而崩溃。
  5. 查看 pyVideoTrans 日志

    • 虽然错误信息已给出,但完整的日志可能包含更多上下文。请提供 D:/TTS/win-pyvideotrans-v3.92/logs/ 目录下最新的日志文件,以便进一步分析请求的具体内容。

核心排查方向:问题根源极大概率在您本地运行的 ChatterBox 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