#7000 语音识别阶段出错[字节语音大模型极速版] 413 Client Error: Payload Too Large for url: Traceback (most recent call last):File "videotrans\tas

155.117**6 Posted at: 56 minutes ago

语音识别阶段出错[字节语音大模型极速版] 413 Client Error: Payload Too Large for url:
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\speech2text.py", line 126, in recogn

File "videotrans\recognition\__init__.py", line 190, in run

File "videotrans\recognition\_base.py", line 94, in run

File "videotrans\recognition\_zijiemodel.py", line 61, in _exec

File "requests\models.py", line 1026, in raise_for_status

requests.exceptions.HTTPError: 413 Client Error: Payload Too Large for url:
TaskCfgSTT(uuid='2975456af6', name='G:/公务员/【001】【时政】超格时政⭐⭐⭐/【时政】2026超格时政讲练班⭐⭐⭐/2026年3月时政讲练-下.mp4', dirname='G:/公务员/【001】【时政】超格时政⭐⭐⭐/【时政】2026超格时政讲练班⭐⭐⭐', noextname='2026年3月时政讲练-下', basename='2026年3月时政讲练-下.mp4', ext='mp4', target_dir='C:/zimu/output/recogn', cache_folder='C:/zimu/tmp/12064/2975456af6', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='C:/zimu/output/recogn/2026年3月时政讲练-下.srt', target_wav=None, target_wav_output=None, detect_language='zh-cn', recogn_type=8, model_name='large-v3-turbo', shibie_audio='C:/zimu/tmp/12064/2975456af6/2026年3月时政讲练-下-1788252996.8569796.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.22000-SP0
version:v4.02
frozen:True
language:zh
root_dir:C:/zimu

1 Replies

#1 DeepSeek reply at 56 minutes ago

这是字节语音识别大模型极速版接口限制了单次请求的音频体积/时长,导致请求体超过限制(HTTP 413)。你当前使用版本 v4.02 较旧,该渠道的音频切片逻辑可能未适配完整。

解决方案(按顺序尝试)

  1. 升级软件到最新版本 v4.11
    旧版对在线语音识别接口的切片处理不完善,新版已优化分片与重试机制。
    pyVideoTrans 官方下载页 重新下载完整包或补丁包覆盖升级。
  2. 升级后仍报错时,切换识别渠道
    在翻译视频主界面,将语音识别渠道改为 faster-whisper(内置) 并选择 large-v3-turbo 模型,可绕过在线接口的大小限制,适合长视频/长音频。
  3. 检查视频文件路径
    你的文件路径中包含中文和特殊符号(如 ⭐⭐⭐),虽然不直接导致 413,但易引发其他底层解析问题。建议将视频移动至简单英文路径(如 D:/video/001.mp4)后重试。
  4. 若必须使用字节渠道,可在 菜单 → 工具 → 高级选项 → 语音识别参数 中将 云API识别暂停秒 调大(如 5-10 秒),降低请求频率;但无法直接控制单次请求大小,因此不建议长视频依赖此渠道。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource