#757 111

*6ea0:d32f* Posted at: 2 hours ago 👁7

语音识别阶段出错:[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal[faster-whisper(本地)]:

Traceback (most recent call last):

File "videotrans\task\trans_create.py", line 375, in recogn

File "videotrans\recognition\__init__.py", line 250, in run

File "videotrans\recognition\_base.py", line 70, in run

File "videotrans\recognition\_overall.py", line 144, in _exec

RuntimeError: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 97, in run

File "videotrans\task\trans_create.py", line 411, in recogn

RuntimeError: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个错误是由于 faster-whisper 在解析语音识别结果时遇到了无效的 JSON 数据导致的。具体来说,它期望收到一个有效的 JSON 对象(以 [{ 开头),但实际收到的数据是空的或格式不正确。

可能的原因和解决方案:

1. 模型文件损坏或不完整

  • 请尝试删除 models 文件夹中的 faster-whisper 相关模型文件,然后重新运行软件让它重新下载。
  • 如果下载失败,请参考以下方法:
  • 在软件目录下创建 huggingface.lock 文件(确保后缀是 .lock),然后设置科学上网代理
  • 或者使用专用下载工具从 https://pyvideotrans.com/faster-whisper-download 下载

2. 音频文件问题

  • 确保输入的音频/视频文件没有损坏,且包含有效的人声内容
  • 尝试转换音频格式为标准的 WAV 或 MP3 格式

3. 临时解决方案

  • 暂时切换到其他语音识别渠道,如:
  • 阿里 FunASR 中文识别(对中文效果较好)
  • 字节火山字幕生成
  • openai-whisper 本地模式

4. 检查高级设置

  • 进入 菜单 → 工具 → 高级选项
  • faster/openai语音识别调整 部分,尝试恢复默认设置
  • 特别是确保 语音阈值最短持续时间 等参数设置合理

如果问题持续存在,请提供软件目录下 logs 文件夹中对应日期的 .log 文件内容,以便进一步分析。

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