#1284 404 Client Error: NOT FOUND for url: http://127.0.0.1:9966/v2/audio/speech_with_prompt

2407:cdc0* Posted at: 16 hours ago 👁13

404 Client Error: NOT FOUND for url: http://127.0.0.1:9966/v2/audio/speech_with_prompt


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:D:/videotransv383

3 Replies

这个错误表明软件无法连接到您本地部署的 TTS 服务。错误信息显示它正在尝试访问 http://127.0.0.1:9966/v2/audio/speech_with_prompt,但该地址返回了 404 NOT FOUND。

请按以下步骤排查:

  1. 检查本地 TTS 服务状态:确认您是否正在运行一个本地 TTS 服务(例如 barkcoqui-tts),并且该服务确实在 127.0.0.1:9966 端口上运行且可用。
  2. 验证 API 端点:检查您的本地 TTS 服务的文档,确认其提供语音合成的 API 端点路径是否为 /v2/audio/speech_with_prompt。路径不匹配会导致 404 错误。
  3. 在软件中重新配置

    • 进入菜单 配音设置
    • 在“配音渠道”中,确保您选择的是正确的本地 TTS 服务选项。
    • 检查并确认“配音 API地址”字段准确无误(应为 http://127.0.0.1:9966)。

如果问题依旧,建议您暂时切换到其他可用的配音渠道,如 Edge-TTS,以完成当前任务。

我确认配音 API地址”字段准确无误http://127.0.0.1:9966
下面是部分日志文件
File "openai\_base_client.py", line 1047, in request
openai.NotFoundError:

404 Not Found
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
self.proxy_str=None
2025-11-03 12:17:22,007 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
self.proxy_str=None
2025-11-03 12:17:36,609 - INFO - Starting call to 'videotrans.tts._chattts.ChatTTS._item_task.._run', this is the 1st time calling it.
2025-11-03 12:17:39,268 - INFO - chatTTS:data={'text': '你好啊我的朋友', 'voice': 'boy1', 'prompt': '', 'is_split': 1}
self.proxy_str=None
2025-11-03 12:17:49,956 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.
self.proxy_str=None
2025-11-03 12:19:16,379 - INFO - Starting call to 'videotrans.tts._chatterbox.ChatterBoxTTS._item_task.._run', this is the 1st time calling it.

从日志可以看出,软件在尝试调用多个本地 TTS 服务(ChatterBoxTTS 和 ChatTTS),但都失败了。核心问题是您的本地 TTS 服务虽然运行在 127.0.0.1:9966,但该服务的 API 端点路径与软件期望的不匹配。

软件期望的端点是 /v2/audio/speech_with_prompt,但您的服务可能使用的是不同的路径。

解决方案:

  1. 检查本地 TTS 服务的实际 API 路径:

    • 请查阅您部署的 TTS 服务(如 bark、coqui-tts 或其他)的官方文档,确认其用于语音合成的 完整 API 地址(包括端口和路径)。
  2. 在软件中修正 API 地址:

    • 进入菜单 配音设置
    • 在"配音 API地址"字段中,填入从第 1 步找到的 完整且正确的 URL(例如:http://127.0.0.1:9966/v1/audio/speech 或其他路径,具体取决于您的服务)。
  3. 临时替代方案:

    • 如果无法立即解决本地服务配置问题,建议您暂时切换到 Edge-TTS 或其他可用的在线配音渠道来完成当前任务。

请根据您实际部署的 TTS 服务文档,修正 API 地址中的路径部分。

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

Trending Questions