This article was replied by DeepSeek
The error occurs because pyVideoTrans cannot connect to the Kokoro-TTS service at
http://127.0.0.1:9988.
This service is required for the text-to-speech (TTS) functionality you are using.
The 404 error indicates that the Kokoro-TTS server is not running or is not accessible at the specified address.
Solution:
1.
Start the Kokoro-TTS Server: Ensure you have Kokoro-TTS installed and running locally.
If you haven't set it up yet, you need to deploy Kokoro-TTS on your machine and start its server.
Typically, this involves running a command like python -m kokoro_tts.server in your terminal, which should launch the service on http://127.0.0.1:9988 (or a similar port).
2.
Verify the API URL in pyVideoTrans: Go to the TTS settings in pyVideoTrans (Menu → TTS Settings) and check that the API URL for Kokoro-TTS is correctly set to http://127.0.0.1:9988.
If you changed the port during setup, update the URL accordingly.
3.
Check Server Status: Open your web browser and navigate to http://127.0.0.1:9988 (or the configured URL).
If the server is running, you should see a response or a welcome page.
If not, restart the Kokoro-TTS server.
4.
Alternative TTS Options: If you continue to face issues, consider switching to another TTS provider in pyVideoTrans, such as Edge-TTS (free) or Azure TTS, which may be easier to configure.
For detailed setup instructions on Kokoro-TTS, refer to its official documentation or repository.
If the problem persists, check the logs in videotrans/logs/ for more details and ensure no other applications are blocking port 9988.