#8612 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

核心原因:该 404 由请求的 API 地址路径不存在,或所选模型不被该服务支持导致,并非软件本身缺陷。_openairecognapi.py 实际请求的是 {你填的api地址}/audio/transcriptions 端点,若该端点不存在或模型名非法,就会返回 404 Not Found。

排查与解决(按顺序):

  1. 打开 菜单 → 翻译设置 → OpenAI语音识别API,核对 API 地址:

    • 官方:必须是 https://api.openai.com/v1(结尾带 /v1,不要多写 /audio/transcriptions)。
    • 第三方中转:确认该中转确实支持语音识别 /audio/transcriptions 端点,很多中转只支持 chat 接口,调用识别必然 404。
  2. 核对 模型名称:官方可用 whisper-1、gpt-4o-transcribe、gpt-4o-mini-transcribe。若是不支持该模型的第三方服务,请改为其文档中列出的识别模型名,否则 404。
  3. 若使用官方地址且在国内,需在主界面对齐行右侧 网络代理 处填写有效代理(如 http://127.0.0.1:7890),否则请求被中间层拦截也可能返回 404。
  4. 确认密钥(SK)与地址属于同一服务商,混填会 404。
  5. 建议改用默认的 faster-whisper(内置) + large-v3-turbo,无需配置、无此报错。

另附带提醒:当前安装路径为 D:/Program Files (x86)/pyvideotrans4.14,属系统受保护目录,易引发权限写入失败,建议整体移动到 D:/pyvideotrans 这类简短纯英文路径下运行。

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