·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