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

核心原因:报错 404 NotFound: The requested resource was not found: /v1/audio/transcriptions 表示你配置的 OpenAI 兼容 API 服务地址上不存在 /v1/audio/transcriptions 这个语音识别端点。这通常是因为 API 基础地址(Base URL)填写错误,或第三方中转服务本身不支持 OpenAI 的音频转录接口(只支持文本对话)。

排查与解决步骤

  1. 检查 API 地址是否完整:进入 菜单 → 翻译设置 → OpenAI / 自定义语音识别API,确认地址以 /v1 结尾。例如:

    • 官方:https://api.openai.com/v1(不能只填 https://api.openai.com
    • 第三方中转:务必确认对方提供完整的 /v1 前缀。
  2. 确认服务是否支持音频转录:很多兼容 OpenAI 的本地大模型服务(如本地 LLM 代理)只支持 /v1/chat/completions 文本对话,不支持 /v1/audio/transcriptions。若你使用的服务不支持语音识别,请更换渠道。
  3. 换用可靠的语音识别渠道

    • 本地推荐:faster-whisper(内置)(默认,效果最佳)
    • 中文推荐:Qwen-ASR(内置)阿里 FunASR(内置)
    • 在线推荐:阿里百炼 Qwen3-ASR / OpenAI 官方语音识别API
  4. 如果必须用自定义/第三方 API:确认该服务确实提供 OpenAI 格式的音频转录接口,且填写的模型名称正确。

请查阅相关文档:

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