·tts-error-reporting
</>

tts-error-reporting

从多处理 TTS 工作人员向主流程前端报告错误的约定。在 tts_client.py 中修改、添加或调试 TTS Worker 时使用此技能,以确保连接错误、配额和 API 限制正确向用户显示 Toast 通知,而不是默默失败。

17安装·1热度·@project-n-e-k-o

安装

$npx skills add https://github.com/project-n-e-k-o/n.e.k.o --skill tts-error-reporting

如何安装 tts-error-reporting

通过命令行快速安装 tts-error-reporting AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/project-n-e-k-o/n.e.k.o --skill tts-error-reporting
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:project-n-e-k-o/n.e.k.o。

SKILL.md

查看原文

To ensure users are properly notified when a TTS service encounters an error (such as quota exhaustion, API issues, or connection failures), TTS workers running in separate processes must propagate errors back to the main process (core.py).

When a TTS worker (e.g. steprealtimettsworker, qwenrealtimettsworker, etc.) catches an error, it MUST NOT only log the error using logger.error(). It MUST ALSO send the error message back to the main process through its responsequeue using the explicit tuple format ("error", errormsg).

This ensures that core.py's ttsresponsehandler can intercept the error and translate it into a frontend WebSocket message (type: 'status'), triggering a user-friendly Toast notification (e.g., "💥 免费TTS限额已耗尽").

从多处理 TTS 工作人员向主流程前端报告错误的约定。在 tts_client.py 中修改、添加或调试 TTS Worker 时使用此技能,以确保连接错误、配额和 API 限制正确向用户显示 Toast 通知,而不是默默失败。 来源:project-n-e-k-o/n.e.k.o。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/project-n-e-k-o/n.e.k.o --skill tts-error-reporting
分类
</>开发工具
认证
收录时间
2026-03-08
更新时间
2026-03-10

Browse more skills from project-n-e-k-o/n.e.k.o

快速解答

什么是 tts-error-reporting?

从多处理 TTS 工作人员向主流程前端报告错误的约定。在 tts_client.py 中修改、添加或调试 TTS Worker 时使用此技能,以确保连接错误、配额和 API 限制正确向用户显示 Toast 通知,而不是默默失败。 来源:project-n-e-k-o/n.e.k.o。

如何安装 tts-error-reporting?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/project-n-e-k-o/n.e.k.o --skill tts-error-reporting 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/project-n-e-k-o/n.e.k.o