#3165 RuntimeError: [json.exception.type_error.302] type must be string, but is number

111.14* Posted at: 12 hours ago 👁12

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 163, in run
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: [json.exception.type_error.302] type must be string, but is number


=
system:Windows-10-10.0.22000-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.92

1 Replies

这是由于 faster-whisper 模型配置文件格式错误或损坏导致的。

解决方案

  1. 删除损坏的模型文件:前往软件安装目录下的 models/ 文件夹,找到 faster-whisper 相关的模型文件夹(例如 models--Systran--faster-whisper-large-v3),将其整个删除。
  2. 重新下载模型

    • 重启 pyVideoTrans 软件。
    • 在“语音识别渠道”中选择 faster-whisper
    • 软件会自动重新下载模型。如果因网络问题下载失败,请配置“网络代理”或手动从镜像站下载模型并放入 models/ 目录。
  3. (可选)使用其他模型:如果问题持续,可以暂时切换到 openai-whisper 或在线语音识别渠道(如 OpenAI 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.

Related resource