#7514 语音识别阶段出错[硅基流动] videotrans.configure.excepts.SpeechToTextErrorTraceback (most recent call last):

23.247**6 Posted at: 2 hours ago

语音识别阶段出错[硅基流动] videotrans.configure.excepts.SpeechToTextError
Traceback (most recent call last):

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

File "tenacity\__init__.py", line 338, in wrapped_f

File "tenacity\__init__.py", line 477, in call

File "tenacity\__init__.py", line 378, in iter

File "tenacity\__init__.py", line 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

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

File "videotrans\task\job.py", line 102, in process_task

File "videotrans\task\_stage_recogn.py", line 63, in recogn

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

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

File "tenacity\__init__.py", line 480, in call

File "videotrans\recognition\_siliconflow.py", line 39, in _exec

videotrans.configure.excepts.SpeechToTextError

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/下载视频 (6).mp4,
输出结果保存到文件夹: D:/_video_out/下载视频 (6)-mp4,
临时文件夹: E:/win-pyvideotrans-v4.13/tmp/16956/fa4c97b829
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:硅基流动, , 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:硅基流动,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.26200-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.13

1 Replies

#1 DeepSeek reply at 2 hours ago

这是通过硅基流动渠道进行语音识别时请求失败导致的错误。底层原因是 _siliconflow.py 调用硅基流动 API 时返回了错误,经 tenacity 重试后仍然失败,最终抛出 SpeechToTextError

可能的原因与排查方向:

  1. 未在硅基流动渠道使用语音识别模型:硅基流动同时提供翻译和语音识别等多种模型,需确认「语音识别」下拉框中对应选择的模型是硅基流动的 ASR(语音识别)类模型,而不是纯文本/翻译模型。若选错模型会导致 API 拒绝请求。
  2. API Key 无效、未填写或余额不足:请检查 菜单 → 翻译设置 → 硅基流动 中的 API Key 是否正确、是否已充值。
  3. 代理问题:日志显示配置了代理 http://127.0.0.1:7897。硅基流动是国内 API,通常不需要走代理。若代理服务未运行或端口错误,会导致请求失败。建议将主界面「对齐控制」右侧的代理文本框清空后重试。
  4. 网络连通性问题:确认当前网络能正常访问硅基流动服务器。

建议操作步骤:

  1. 先清空软件代理文本框(硅基流动国内 API 无需代理),保存后重试。
  2. 检查硅基流动 API Key 及账户余额。
  3. 确认语音识别渠道使用的模型名正确(应为 ASR 类模型)。
  4. 若无特殊需求,语音识别建议改用默认的 faster-whisper(内置) 渠道,无需 API 和网络。

如果上述操作后仍报错,请提供软件目录 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息)以便进一步分析。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource