#8611 Not Found:Traceback (most recent call last):

2408**a8e5 Posted at: 1 hour ago

Not Found:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 21, in run
File "videotrans\recognition\__init__.py", line 121, 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.NotFoundError: Error code: 404 - {'error': {'message': 'Not Found', 'code': 404}}


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/Program Files (x86)/pyvideotrans4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 API 地址或接口路径不正确导致的:OpenAI 语音识别渠道会向 {你填写的API地址}/audio/transcriptions 发送 POST 请求,服务器返回 404,说明该地址不存在或路径拼接后不匹配。

排查与处理:

  1. 打开 菜单 → 翻译设置 → OpenAI语音识别API(或对应渠道的设置窗口),检查 API 地址:

    • 官方接口应填 https://api.openai.com/v1(不要带 /audio/transcriptions,不要带多余斜杠)。
    • 不可填 0.0.0.0,本地服务须填 127.0.0.1:端口/v1。
  2. 若使用第三方中转/兼容服务,需确认该服务确实开放了 audio/transcriptions 端点,且地址末尾的 /v1 与其文档一致(部分中转要求 /v1,部分直接根地址)。
  3. 检查 模型名称 是否该服务支持,官方填 whisper-1(或 gpt-4o-transcribe 等),填了服务端不存在的模型也会 404。
  4. 检查 API Key 是否有效、是否有该模型权限、账户是否有余额。
  5. 建议把软件移到短英文路径(如 D:/pyVideoTrans),当前位于 D:/Program Files (x86)/pyvideotrans4.14,含空格和括号,易引发其他异常,且系统目录写入受限。

若以上均确认无误仍报 404,请提供该渠道设置窗口中的 API 地址与模型名,以及 logs/ 目录下最新日志底部约 30 行。

请查阅相关文档:

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