#5802 Expecting value: line 1 column 1 (char 0):Traceback (most recent call last):

114.92* Posted at: 1 day ago

Expecting value: line 1 column 1 (char 0):
Traceback (most recent call last):
File "requests\models.py", line 976, in json
File "simplejson\__init__.py", line 514, in loads
File "simplejson\decoder.py", line 386, in decode
File "simplejson\decoder.py", line 416, in raw_decode
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 133, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_chattts.py", line 32, in _run
File "requests\models.py", line 980, in json
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/apps/win-pyvideotrans-v4.03-0626

1 Replies

这是由于 ChatTTS 配音服务返回了非 JSON 格式的响应(如 HTML 错误页面或纯文本),导致软件解析失败。常见原因及解决方案如下:

  1. ChatTTS 服务未启动
    请确认你自行部署的 ChatTTS 服务已经正常运行,并在浏览器中访问 http://127.0.0.1:9966(或你配置的其他地址),确保能看到 API 文档或正常响应。
  2. API 地址配置错误
    进入软件菜单「工具/选项 → 高级选项 → 字幕配音调整」,检查 ChatTTS 的 API 地址是否填写正确(默认应为 http://127.0.0.1:9966)。如果服务部署在其他端口或远程服务器,请对应修改。
  3. 服务端口占用或冲突
    如果 ChatTTS 默认的 9966 端口被其他程序占用,启动时会失败。尝试更换端口或关闭冲突程序。
  4. ChatTTS 版本兼容性
    确保你部署的 ChatTTS 版本与软件 v4.03 兼容。建议使用官方推荐的部署方式(如通过 uv run chattts/webui.py 启动)。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource