#5671 videotrans.configure.excepts.DubbingSrtError: {

103.192* Posted at: 3 hours ago

{"error":{"code":"1211","message":"模型不存在,请检查模型代码。"}}:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 19, in run
File "videotrans\tts\__init__.py", line 207, in run
File "videotrans\tts\_base.py", line 133, in run
videotrans.configure.excepts.DubbingSrtError: {"error":{"code":"1211","message":"模型不存在,请检查模型代码。"}}


=
system:Windows-10-10.0.22621-SP0
version:v4.04
frozen:True
language:en
root_dir:D:/VIDEO DUB/win-pyvideotrans-v4.04-0704

1 Replies

The error {"error":{"code":"1211","message":"模型不存在,请检查模型代码。"}} indicates that the TTS API you are using rejected the request because the specified model code (e.g., the model name for the voice synthesis engine) does not exist or is invalid.

This typically happens when you have configured a custom model name in the TTS channel settings (e.g., OpenAI TTS, DeepSeek, GPT-SoVITS, etc.) but entered an incorrect or unsupported model ID.

How to fix:

  1. Open the TTS settings – Go to Menu → TTS Settings → [Your selected TTS channel].
  2. Check the model field – Ensure the model name is one of the officially supported ones.

    • For OpenAI TTS: Supported models are tts-1, tts-1-hd, gpt-4o-mini-tts.
    • For DeepSeek / GPT / local API: verify the exact model name required by the service.
  3. If you are using a local API (e.g., GPT-SoVITS), make sure the service is running and the model name matches what you specified in the API configuration (usually the model loaded in the server).
  4. If you did not manually set a model, try switching to another free TTS channel like Edge-TTS (which does not require a model code) to bypass the issue.

If the problem persists, provide the name of the Dubbing Channel and the exact model code you entered, so I can give more specific advice.

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. Dondate: ko-fi.com/jianchang512

Related resource