#4804 videotrans.configure.excepts.DubbingSrtError: Invalid API-key provided.

149.50* Posted at: 1 hour ago

Invalid API-key provided.:
Traceback (most recent call last):
File "C:\Users\mount\pyvideotrans\videotrans\util\ListenVoice.py", line 16, in run

tts.run(

File "C:\Users\mount\pyvideotrans\videotrans\tts\__init__.py", line 181, in run

return _cls(**kwargs).run()  # type:ignore

File "C:\Users\mount\pyvideotrans\videotrans\tts\_base.py", line 132, in run

raise self.error if isinstance(self.error, Exception) else DubbingSrtError(str(self.error))

videotrans.configure.excepts.DubbingSrtError: Invalid API-key provided.


=
system:Windows-10-10.0.26100-SP0
version:v4.00
frozen:False
language:zh
root_dir:C:/Users/mount/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

1 Replies

该错误是因为您选择的配音渠道需要提供有效的 API 密钥,但当前未设置或密钥错误。

解决方案:

  1. 确认您在“配音渠道”下拉框中选择的是哪个渠道(例如 OpenAI-TTSAzure-TTSElevenLabs 等)。
  2. 点击顶部菜单 “TTS 设置”,找到对应渠道的设置面板。
  3. 在对应面板中正确填写您的 API Key 和相应地址/模型信息,然后保存。
  4. 如果不想配置付费渠道,请切换到 Edge-TTS(免费),该渠道开箱即用,无需任何密钥。

如果仍无法解决,请提供软件 logs/ 目录下最新日志文件的最后 30 行,以便进一步定位是哪个渠道产生的错误。

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