#1386 deepgram.clients.common.v1.errors.DeepgramApiError: DeepgramApiError: Bad Request: No such model/language/tier combinati

158.51* Posted at: 7 hours ago 👁6

语音识别阶段出错:Bad Request: No such model/language/tier combination found. You could try the "general" model (language: ja, base tier).[Deepgram.com]:
Traceback (most recent call last):
File "deepgram\clients\common\v1\abstract_sync_rest.py", line 227, in _handle_request
File "httpx\_models.py", line 829, in raise_for_status
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.deepgram.com/v1/listen?diarize=true&language=ja&model=tiny¶graphs=true&punctuate=true&smart_format=true&utt_split=0.2&utterances=true'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\job.py", line 97, in run
File "videotrans\task\_speech2text.py", line 93, in recogn
File "videotrans\recognition\__init__.py", line 230, in run
File "videotrans\recognition\_base.py", line 70, in run
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_deepgram.py", line 81, in _exec
File "deepgram\clients\listen\v1\rest\client.py", line 260, in transcribe_file
File "deepgram\clients\common\v1\abstract_sync_rest.py", line 123, in post
File "deepgram\clients\common\v1\abstract_sync_rest.py", line 242, in _handle_request
deepgram.clients.common.v1.errors.DeepgramApiError: DeepgramApiError: Bad Request: No such model/language/tier combination found. You could try the "general" model (language: ja, base tier). (Status: 400)


=
Windows-10-10.0.22621-SP0
version:v3.80
frozen:True
language:zh

1 Replies

这个错误是由于 Deepgram 语音识别渠道不支持您选择的模型和语言组合。错误信息明确指出 "No such model/language/tier combination found"。

解决方案:

  1. 更换语音识别渠道(推荐):

    • 在左侧功能区选择 "翻译视频和音频"
    • 在 "语音识别渠道" 下拉菜单中,将 "Deepgram" 更换为其他渠道,如:

      • faster-whisper(本地) - 推荐使用,支持多种语言
      • openai-whisper - 同样支持日语识别
      • 阿里FunASR - 对中文效果较好
  2. 如果必须使用 Deepgram

    • 在 "语音识别渠道" 选择 "Deepgram"
    • 点击右侧的 "设置" 按钮
    • 将模型从 "tiny" 改为 "general"(如错误信息建议)
    • 确保语言设置正确(日语应为 "ja")

建议: 对于日语语音识别,推荐使用 faster-whisper(本地) 渠道,选择 large-v3 模型,效果更好且无需 API 调用。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions