#2314 TaskCfg(cache_folder=None, target_dir='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs', remove_nois

27.18* Posted at: 4 hours ago 👁6

翻译字幕阶段出错 [DeepSeek] 服务返回错误:Insufficient Balance
Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 924, in run
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 137, in _run_srt
File "videotrans\translator\_deepseek.py", line 55, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1156, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

TaskCfg(cache_folder=None, target_dir='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='English', target_language_code='Simplified Chinese', source_sub='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs/English.eng.srt', target_sub='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs/English.eng.Simplified Chinese.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='English.eng', 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=None, copysrt_rawvideo=False, clear_cache=False, translate_type=4, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs/English.eng.srt', basename='English.eng.srt', ext='srt', dirname='G:/迅雷下载/Bombing Pompeii (2023) [1080p] [WEBRip] [5.1] [YTS.LT]/Subs', shound_del_name=None, uuid='52288f61c8', remove_silent_mid=False, align_sub_audio=True, 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:F:/soft/win-pyvideotrans-v3.92

3 Replies

错误信息明确指出是 DeepSeek 翻译渠道的账户余额不足(Insufficient Balance)。请按以下步骤解决:

  1. 检查并充值 DeepSeek 账户

    • 登录您的 DeepSeek 平台账户(通常是其官方网站或控制台)。
    • 检查账户余额或 API 调用额度,并进行充值。
  2. 在 pyVideoTrans 中更换翻译渠道(临时方案)

    • 在软件主界面的 第 3 行“翻译设置” 中,将翻译渠道从 “DeepSeek” 切换到其他可用的渠道,例如:

      • 免费渠道:Google(需配置代理)、微软、DeepLX。
      • 其他 AI 渠道:如果您有其他 API Key,可切换至 OpenAI、Gemini、Claude、智谱AI 等。
    • 确保在对应渠道的“翻译设置”中填写了正确的 API Key。
  3. 重新执行任务

    • 更换渠道后,重新运行翻译任务即可。

重要提示:此错误与软件本身无关,是所使用的第三方 API 服务(DeepSeek)的账户状态问题。请优先处理您的 DeepSeek 账户余额。

Understood.

您的 DeepSeek 账户余额不足,导致翻译服务被拒绝。请按以下步骤操作:

  1. 检查并充值 DeepSeek 账户:登录 DeepSeek 官方平台(如平台控制台),检查 API 调用余额并进行充值。
  2. 临时更换翻译渠道

    • 在软件主界面 第 3 行“翻译设置” 中,将渠道从 “DeepSeek” 切换到其他可用选项。
    • 免费选项:Google(需配置代理)、微软、DeepLX。
    • 其他 AI 选项:如果您拥有有效的 API Key,可切换至 OpenAI、Gemini、Claude、智谱AI 等(需在对应渠道的设置中填写 Key)。
  3. 重新执行任务:更换渠道后,重新运行翻译即可。

核心原因:此错误与软件本身无关,是您所使用的第三方 DeepSeek API 服务因账户余额不足而拒绝请求。

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