#686 requests.exceptions.HTTPError: 405 Client Error: Not Allowed for url: https://www.bigmodel.cn/trialcenter/modeltrial/tex

*345:4606* Posted at: 11 hours ago 👁7

操作系统错误 (None): None:Traceback (most recent call last):

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

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 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\util\TestSTT.py", line 18, in run

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

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

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\recognition\_recognapi.py", line 84, in _exec

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

requests.exceptions.HTTPError: 405 Client Error: Not Allowed for url: https://www.bigmodel.cn/trialcenter/modeltrial/text?modelcode

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于在测试智谱AI语音识别功能时,软件向智谱AI的API端点发送了错误的请求,导致返回了“405 Method Not Allowed”错误。这表明您可能在软件中选择了“智谱AI”作为语音识别渠道,但配置有误。

核心原因与解决方案:

智谱AI的API主要用于文本对话和生成,并不提供语音识别服务pyVideoTrans 软件中集成的“智谱AI”渠道是用于字幕翻译的,而不是语音识别。您错误地将其用作了语音识别渠道。

请按以下步骤解决:

1. 检查并更正识别渠道:在软件主界面的“语音识别”区域,请确保您选择的不是“智谱AI”。对于语音识别,您应该选择其他专门的渠道,例如:

  • faster-whisper(推荐,本地运行,无需API密钥)
  • 阿里FunASR(针对中文优化)
  • GoogleSpeech、OpenAI-api等(需要配置相应的API密钥)

2. 正确使用智谱AI:如果您希望使用智谱AI的强大模型来翻译字幕,那么您应该在“翻译”区域选择“智谱AI”,并确保在那里正确填写了您的API密钥。

3. 验证API密钥:如果您确实打算使用需要API密钥的识别或翻译服务,请确保您在软件设置中填写的API密钥是有效且正确的,并且对应的账户有足够的余额或调用权限。

总结: 这个错误并非软件本身的BUG,而是配置和使用方式不当。请检查您的“语音识别”设置,将其切换到一个有效的语音识别服务即可解决问题。

如需了解更多关于不同渠道的用法,请参阅官方文档:https://pyvideotrans.com

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