#4570 RuntimeError: TTS speak request failed, please verify your input and ensure the service is operational.

221.6* Posted at: 2 hours ago 👁10

TTS speak request failed, please verify your input and ensure the service is operational.:
Traceback (most recent call last):
File "C:\Users\Goinfor\Desktop\Python\pyvideotrans\videotrans\util\ListenVoice.py", line 16, in run

tts.run(

File "C:\Users\Goinfor\Desktop\Python\pyvideotrans\videotrans\tts\__init__.py", line 375, in run

QWENTTS(**kwargs).run()

File "C:\Users\Goinfor\Desktop\Python\pyvideotrans\videotrans\tts\_base.py", line 181, in run

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

File "C:\Users\Goinfor\Desktop\Python\pyvideotrans.venv\lib\site-packages\tenacity\__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "C:\Users\Goinfor\Desktop\Python\pyvideotrans\videotrans\tts\_qwentts.py", line 61, in _run

raise RuntimeError( f"{response.message if hasattr(response, 'message') else str(response)}")

RuntimeError: TTS speak request failed, please verify your input and ensure the service is operational.


=
system:Windows-10-10.0.26100-SP0
version:v3.99
frozen:False
language:zh
root_dir:C:/Users/Goinfor/Desktop/Python/pyvideotrans
Python: 3.10.19 (main, Dec 17 2025, 21:07:16) [MSC v.1944 64 bit (AMD64)]

1 Replies

这是由于 Qwen-TTS API 请求失败导致的,常见原因包括 API Key 无效、网络连接问题、输入内容异常或服务端故障。

请按以下步骤排查:

  1. 检查配置:在软件菜单 → 翻译设置(或 TTS设置)→ 找到 Qwen-TTS 渠道,确认已正确填写 API URLAPI Key
  2. 验证网络:确保当前网络能正常访问阿里云 Qwen-TTS 的 API 端点(中国大陆一般无需代理)。
  3. 测试输入:尝试使用极短的文本(如“你好”)单独运行配音,排除输入异常。
  4. 查看服务状态:若使用本地部署的 Qwen-TTS,需确保服务已启动且端口正确;若使用在线 API,请确认账户余额充足。

若以上步骤无法解决,请提供软件 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