#6959 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 地址不正确,该服务器上不存在 /v1/audio/transcriptions 端点。这通常是因为填写的 Base URL 指向了不支持音频转录接口的第三方中转/兼容服务(很多只支持对话 chat 接口,不支持语音识别),或地址填错。

解决方案:

  1. 确认 API 地址:若使用 OpenAI 官方接口,Base URL 必须是 https://api.openai.com/v1;若使用第三方中转/兼容 API,请务必先确认其服务端确实支持 OpenAI 的音频转录接口(/v1/audio/transcriptions),很多兼容服务仅支持 chat/completions。
  2. 检查 API Key:确保已填写有效的 OpenAI SK 密钥,且账户存在余额或额度。
  3. 更换识别渠道:若暂时无法确认第三方服务是否支持音频转录,建议改用内置的 faster-whisper 渠道(本地免费、无需 API Key),或使用其他已确认支持语音识别的在线渠道(如 302.AI、字节语音识别大模型极速版等)。

请查阅相关文档:

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