#1482 openai.InternalServerError: Error code: 500 - {'error': '不支持该语言:zh'}

111.57* Posted at: 2 hours ago 👁5

500 错误: API服务端内部错误 Error code: 500 - {'error': '不支持该语言:zh'}:
Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 230, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_parakeet.py", line 38, in _exec
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 406, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.InternalServerError: Error code: 500 - {'error': '不支持该语言:zh'}


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:C:/Users/zhu/Downloads/win-videotrans-v3.83

1 Replies

根据错误信息,您在使用 OpenAI 语音识别时遇到了问题。错误 '不支持该语言:zh' 表明您选择的 OpenAI 语音识别模型不支持中文识别。

解决方案:

  1. 更换语音识别渠道: 对于中文语音识别,建议使用以下渠道:

    • faster-whisper(本地):这是最推荐的选择。请选择 large-v2large-v3 模型,并确保勾选了 CUDA加速(如果您有 NVIDIA 显卡)。
    • 阿里FunASR(本地):此模型对中文识别有专门优化。
  2. 检查 OpenAI 模型支持: 如果您必须使用 OpenAI 的语音识别服务,请确认您选择的 OpenAI 模型(例如 whisper-1)是否确实支持您视频中的语言。根据错误提示,当前配置可能不支持中文。

操作步骤:
在软件主界面的“语音识别渠道”下拉菜单中,将当前选择的 OpenAI API 更改为 faster-whisper阿里FunASR,然后重新执行任务。

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

Trending Questions