#846 RuntimeError: 404 Client Error: NOT FOUND for url: http://127.0.0.1:9988/v1/audio/speechKokoroTTS

92.195* Posted at: 25 days ago 👁84

404 Client Error: NOT FOUND for url: http://127.0.0.1:9988/v1/audio/speechKokoroTTS:Traceback (most recent call last):

File "videotrans\util\ListenVoice.py", line 18, in run

File "videotrans\tts\__init__.py", line 471, in run

File "videotrans\tts\_base.py", line 142, in run

RuntimeError: 404 Client Error: NOT FOUND for url: http://127.0.0.1:9988/v1/audio/speechKokoroTTS

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:en

5 Replies

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.

RuntimeError: 404 Client Error: NOT FOUND for url: http://127.0.0.1:9988/v1/audio/speechKokoroTTS - pyVideoTrans bbs

[url=http://www.g9ykx3982731443f3a3zu0sterxmh1p7s.org/]ucpcsijcrw[/url]

cpcsijcrw http://www.g9ykx3982731443f3a3zu0sterxmh1p7s.org/

acpcsijcrw

本条内容由 DeepSeek 回复
The error "404 Client Error: NOT FOUND for url: http://127.0.0.1:9988/v1/audio/speechKokoroTTS" occurs because the Kokoro-TTS service is not running or accessible on your computer. This service is required for the text-to-speech (TTS) functionality you are trying to use in pyVideoTrans.

Solution:

1. Start the Kokoro-TTS Server: You need to have Kokoro-TTS installed and running locally. If you haven't set it up yet, you must deploy it. This typically involves running a command like python -m kokoro_tts.server in your terminal or command prompt, which should start the service on http://127.0.0.1:9988.

2. Verify the Service is Running: Open your web browser and go to http://127.0.0.1:9988. If the server is running correctly, you should see a response. If you get an error or the page doesn't load, the server is not active.

3. Check for Port Conflicts: Ensure no other applications are using port 9988.

4. Use an Alternative TTS Provider: If you continue to have issues, the simplest solution is to switch to a different, easier-to-use TTS provider within pyVideoTrans. Edge-TTS is a great free option that works immediately without any local setup. You can select it from the "配音渠道" (TTS/Voice) dropdown menu.

For detailed instructions on setting up Kokoro-TTS, please refer to its official documentation or GitHub repository. The links in your post appear to be unrelated spam and should be ignored.

If you need further assistance, please provide the log file from videotrans/logs/ for a more detailed analysis.

Admin

打开菜单--TTS设置-Kokoro TTS--http地址填写 http://127.0.0.1:5066

后边无需填写,根据此说明

查看该文档https://pyvideotrans.com/kokorotts

本条内容由 DeepSeek 回复
根据您提供的信息,您已经正确配置了Kokoro TTS的地址。错误提示中的URL是 http://127.0.0.1:9988/v1/audio/speech,但您设置的是 http://127.0.0.1:5066

问题分析:

这个404错误表明pyVideoTrans软件内部仍然在尝试连接旧的默认地址(9988端口),而不是您新设置的地址(5066端口)。这通常是由于软件配置没有正确保存或生效导致的。

解决方案:

1. 重启软件:关闭pyVideoTrans软件,然后重新启动。这是确保新配置生效的最重要一步。

2. 验证配置:重启后,请再次打开"菜单--TTS设置--Kokoro TTS",确认地址栏中显示的是 http://127.0.0.1:5066 并且已保存。

3. 测试连接:在配置好地址后,您可以尝试在配音角色下拉菜单中选择一个角色,然后点击"试听配音"。如果Kokoro TTS服务正在5066端口正常运行,应该能够成功试听。

4. 检查Kokoro TTS服务:确保您的Kokoro TTS服务确实在5066端口上运行。您可以在浏览器中访问 http://127.0.0.1:5066 来验证服务是否可用。

如果问题仍然存在,建议检查软件目录下的 videotrans/params.json 文件,查找"kokoro"相关的配置项,确认地址是否已更新为5066端口。

根据您提供的文档链接,Kokoro TTS确实需要本地部署,您已经完成了最关键的服务地址配置步骤。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions