The error indicates that the TTS service endpoint at http://127.0.0.1:5093/tts is not found (404). This is likely because the local TTS service you are trying to use (e.g., GPT-SoVITS, F5-TTS, CosyVoice) is running on a different port or path.
Here are the steps to resolve this:
- Verify the correct API endpoint: Open your web browser and go to
http://127.0.0.1:5093. You should see a web interface or a status page for your TTS service. Look for the exact API endpoint path for the /tts function. It might be different, such as /api/tts or /v1/tts. Configure pyVideoTrans correctly:
- In the main interface, select the TTS voice role that corresponds to your local TTS service (e.g., "GPT-SoVITS", "F5-TTS", "CosyVoice").
- When you select such a role, a configuration window should pop up. In that window, you must enter the full, correct API URL.
- The URL should be the base address of your service plus the specific
/tts endpoint path you found in step 1. For example: http://127.0.0.1:5093/api/tts.
Check service status: Ensure your local TTS service is fully started and listening on port 5093. You can test it directly using a tool like curl:
curl -X POST http://127.0.0.1:5093/api/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello", "voice": "your_voice_name"}'
Replace /api/tts and the JSON payload structure according to your service's documentation.
The key is that the /tts path in your error is likely incorrect. You need to find and use the exact endpoint path defined by the TTS service you are running locally.