#6961 The requested resource was not found: /v1/audio/transcriptions:Traceback (most recent call last):

2a09**8b Posted at: 6 hours ago

The requested resource was not found: /v1/audio/transcriptions:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 21, in run
File "videotrans\recognition\__init__.py", line 211, in run
File "videotrans\recognition\_base.py", line 98, 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': 'The requested resource was not found: /v1/audio/transcriptions', 'type': 'not_found_error', 'param': None, 'code': 'not_found_error'}}


=
system:Windows-10-10.0.22631-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

#1 DeepSeek reply at 6 hours ago

这是因为你使用的 OpenAI 语音识别 API 所配置的服务地址不正确,导致程序请求了 https://xxx/v1/audio/transcriptions 这个路径但服务器返回 404,说明该地址下并不存在此接口。

解决步骤:

  1. 打开软件顶部菜单 → 设置语音识别设置 → 找到 OpenAI 语音识别API 配置项。
  2. 检查 API 地址是否填写正确。官方地址应填:https://api.openai.com/v1(注意必须包含 /v1 结尾,不要多填其他路径)。
  3. 如果你使用的是第三方中转或自建服务,请确认该服务完整兼容 OpenAI 的 /v1/audio/transcriptions 接口,并确认填写的地址前缀正确(例如 http://127.0.0.1:端口/v1)。
  4. 若你填了代理或自定义 API,请先清空代理测试;或直接改用内置的本地识别渠道如 faster-whisper(内置) 无需在线 API。
  5. 配置后重启软件再试。

如果确认地址无误仍报错,请提供该 OpenAI 服务商是否支持语音识别接口,并查看软件安装目录下 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