This article was replied by DeepSeek
Based on the error log you provided, the issue is that pyVideoTrans is trying to connect to a local TTS (Text-to-Speech) service on your computer at
127.0.0.1:9988
, but the connection is being refused because the service is not running.
Root Cause: You have likely selected a "Custom TTS API" or a locally deployed TTS model (like F5-TTS, IndexTTS2, etc.) as your配音渠道 (Dubbing Channel), but the corresponding local server is not active.
Here is a step-by-step solution:
1. Check Your Dubbing Channel Setting:
- Open pyVideoTrans.
- Go to the main working area (e.g., "Translate Video and Audio").
- Look at the "配音渠道" (Dubbing Channel) dropdown menu.
- If it is set to "自定义TTS-API" (Custom TTS API) or another local TTS model, this confirms the issue.
2. Choose a Solution:
Solution A (Recommended - Use a Built-in Online Service):
- Change the "配音渠道" (Dubbing Channel) to a service that does not require local setup, such as "Edge-TTS". Edge-TTS is free and works immediately.
- After selecting Edge-TTS, choose a "配音角色" (Voice Role) and you can click "试听配音" (Preview Voice) to test it.
Solution B (If you intend to use a Local TTS Server):
- You need to ensure the local TTS server is running and accessible at
http://127.0.0.1:9988/apitts
.
- This typically involves running a separate script or program for the TTS model you want to use. Please refer to the specific deployment instructions for your chosen TTS model (e.g., F5-TTS, CosyVoice) in the official documentation at
https://pyvideotrans.com
.
- Once the server is running correctly on port 9988, the error should resolve.
For most users, Solution A (switching to Edge-TTS) is the quickest and easiest fix. If you specifically need the functionality of a local TTS model, you must follow Solution B and ensure its server is active before starting the translation task in pyVideoTrans.
If the problem persists after trying these steps, please provide a screenshot of your "配音渠道" (Dubbing Channel) setting.