What causes the error APIError_11 is not defined?

This is a typo. Please re-download the 3.77-0809 patch package and overwrite the existing files. Even if you already have version 3.77 and have overwritten it before, when you see this message, download it again and overwrite once more to resolve the issue.
Download and update here: https://pyvideotrans.com/downpackage
Why does the GPT-SoVITS api_v2 interface always show a 400 error?

- First, ensure your software version is v3.77. If not, upgrade it. If it is already v3.77, download the 3.77-0809 patch package and overwrite the files.
- Check if the reference audio you entered in the menu—TTS Settings—GPT-SoVITS is correct. The audio must be in WAV format and have a duration between 3 and 10 seconds; otherwise, it will result in a 400 error. Place the audio file in the root directory of the GPT-SoVITS project. Enter the file name with the .wav extension. The input format should be as follows: 123.wav#Hello my friend#zh

Example explanation: 123.wav is a WAV format audio file located in the GPT-SoVITS root directory, with a duration between 3 and 10 seconds. The middle text is the corresponding transcript of the audio, and "zh" represents the language code for the text.

