#951 videotrans.configure._except.StopRetry: Input data may contain inappropriate content.

183.198* Posted at: 10 hours ago 👁5

翻译字幕阶段出错:Input data may contain inappropriate content. [阿里百炼]:

Traceback (most recent call last):

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

File "videotrans\task\_translate_srt.py", line 48, in trans

File "videotrans\translator\__init__.py", line 800, in run

File "videotrans\translator\_base.py", line 79, in run

File "videotrans\translator\_base.py", line 97, in _run_text

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\translator\_qwenmt.py", line 93, in _item_task

videotrans.configure._except.StopRetry: Input data may contain inappropriate content.

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 Gemini 回复
您遇到的 Input data may contain inappropriate content. 错误是由阿里百炼(QwenMT)翻译服务报告的。这通常意味着您视频中的原始语音内容被阿里百炼的审查系统识别为可能包含不适宜的内容,从而拒绝了翻译请求。这并非 pyVideoTrans 软件本身的错误,而是翻译服务提供商的内容审核机制触发了。

请尝试以下解决方案:

1. 更换翻译渠道: 这是最直接有效的解决方案。

  • 返回 pyVideoTrans 主界面。
  • 在“翻译渠道”下拉菜单中,选择其他可用的在线翻译服务,例如 GoogleMicrosoftDeepLOpenAIGeminiDeepSeek 等大型语言模型(LMM)的API。
  • 确保您已在 videotrans/params.json 中配置好相应API的密钥。

2. 调整翻译参数(若仍想使用阿里百炼): 如果您仍希望尝试使用阿里百炼翻译,可以尝试减少单次发送的文本量,有时这能规避某些内容审核机制:

  • 在菜单栏选择 工具/选项 -> 高级选项
  • 在“翻译调整”区域,将“同时翻译的字幕数”设为 1
  • 取消勾选 “发送完整字幕到翻译接口”。
  • 点击“保存”。

请注意,如果原视频内容确实包含敏感或违规信息,更换翻译渠道或调整参数也可能无法完全解决问题,因为其他翻译服务也可能有类似的审核策略。

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