#4845 openai.NotFoundError: Error code: 404 - {'detail': 'Not Found'}

95.85* Posted at: 3 hours ago

None:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 17, in run
File "videotrans\recognition\__init__.py", line 190, in run
File "videotrans\recognition\_base.py", line 93, in run
File "videotrans\recognition\_whisperx.py", line 31, in _exec
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 - {'detail': 'Not Found'}


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:A:/BaiduNetdiskDownload/py

1 Replies

该错误是因为使用了 WhisperX API 作为语音识别渠道,但软件无法访问到对应的后端服务(返回 HTTP 404),通常是由于 API 地址配置错误或服务未启动。

解决方案:

  1. 确认 WhisperX API 服务已启动
    检查您部署的 whisperx-api 后端服务是否在运行,并确认端口号正确(默认通常为 8000)。
  2. 检查软件中的 API 地址设置
    在菜单栏 工具/选项高级选项语音识别参数 区域,找到 WhisperX 相关设置,确保 API 地址 填写正确,例如 http://127.0.0.1:8000(注意不要遗漏端口号)。
  3. 若未部署 WhisperX 服务
    建议切换为其他语音识别渠道,例如 faster-whisper(本地)OpenAI语音识别API(需填写正确的 OpenAI API Key 和 Base URL),避免因服务缺失导致的 404 错误。

请查阅相关文档:

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.

Related resource

Similar issues already exist