#7582 Token is invalid.Traceback (most recent call last):

23.132**7 Posted at: 1 hour ago

Token is invalid.
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\only_one.py", line 70, in run
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: Token is invalid.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/PC/Desktop/素材MG/意大利.mp4,
输出结果保存到文件夹: C:/Users/PC/Videos/Captures/意大利-mp4,
临时文件夹: C:/Users/PC/Downloads/tmp/21628/222a64b940
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:硅基流动, , 发音语言: 意大利语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:意大利语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
video_duration_ms=120033


=
system:Windows-10-10.0.19045-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:C:/Users/PC/Downloads

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:硅基流动(SiliconFlow)语音识别渠道的 API 密钥(SK)无效或未正确填写。

解决方案:

  1. 访问硅基流动官网(https://siliconflow.cn)登录,在控制台的「API 密钥」页面确认你的密钥是否有效、是否已被删除或过期。

  2. 打开软件顶部菜单 翻译设置/设置硅基流动(SiliconFlow),重新填写有效的 SK 密钥并保存。

  3. 确认该密钥账户有余额或可用额度。

  4. 保存后,在主界面勾选 清理已生成,重新执行任务。

补充说明:若你并无硅基流动账号或不想使用该渠道,可将「语音识别」改为免费内置渠道 faster-whisper(内置)(选择 large-v3large-v3-turbo 模型),无需任何密钥即可离线识别意大利语。

请查阅相关文档:

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