#7436 None:Traceback (most recent call last):

240e**881e Posted at: 1 hour ago

None:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 21, in run
File "videotrans\recognition\__init__.py", line 233, in run
File "videotrans\recognition\_base.py", line 99, in run
File "videotrans\recognition\_openairecognapi.py", line 39, in _exec
File "videotrans\recognition\_openairecognapi.py", line 99, in _thrid_api
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\audio\transcriptions.py", line 485, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.BadRequestError: Error code: 400 - {'success': False, 'errors': [{'code': 7003, 'message': 'Could not route to /accounts/113bed38f2983e9008df87a21dfb736f/ai/audio/transcriptions, perhaps your object identifier is invalid?'}, {'code': 7000, 'message': 'No route for that URI'}], 'messages': [], 'result': None}


=
system:Windows-10-10.0.26100-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/Program Files/win-pyvideotrans-v4.12-0912

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Cloudflare(cf)返回的 7003/7000 路由错误,说明你填写的 API 地址(Base URL)不正确,请求被发到了一个不存在的路径上,与软件本身无关。

排查与解决步骤:

  1. 检查你在 菜单 → 翻译设置 → OpenAI语音识别(或兼容渠道) 中填写的 API 地址(Base URL) 是否完整正确。报错路径为 /accounts/113bed38f2983e9008df87a21dfb736f/ai/audio/transcriptions,请确认该地址是否为你所使用服务商官方文档中给出的正确端点。部分中转/第三方服务商的语音识别接口路径与 OpenAI 官方不同,不能照抄官方地址。
  2. 若使用 OpenAI 官方,Base URL 应填写 https://api.openai.com/v1(不要带 /audio/transcriptions 后缀,软件会自动拼接)。
  3. 若使用第三方中转/兼容服务,请向该服务商确认其语音识别(audio/transcriptions)接口的完整 Base URL 和支持的模型名称,并确保该服务确实提供该接口。
  4. 若该服务商不支持 OpenAI 格式的语音识别接口,请将语音识别渠道更换为其他可用渠道,例如 faster-whisper(内置)(本地免费)或 Gemini/豆包 等在线 ASR。

请查阅相关文档:

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