AGENT SKILL

homepod-tts

使用 Qwen3-TTS 生成 TTS 语音并通过 HomePod 播放。当用户说"播放语音到HomePod"、"用HomePod对我说话"、"让HomePod播报XXX"时触发。

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

01 前言 Front Matter

name
homepod-tts
description
使用 Qwen3-TTS 生成 TTS 语音并通过 HomePod 播放。当用户说"播放语音到HomePod"、"用HomePod对我说话"、"让HomePod播报XXX"时触发。

02 资源文件 5

03 SKILL.md 正文

HomePod TTS

使用 HomePod 播放 TTS 语音(支持情绪识别)。

工作流程

  1. 自动情绪识别:根据文本内容自动判断情绪(开心、悲伤、生气、惊讶等)
  2. 生成语音:调用 Qwen3-TTS 生成 WAV 文件
  3. 启动 HTTP 服务:Serving 音频文件供 Home Assistant 访问
  4. 发送到 HomePod:调用 Home Assistant media_player.play_media 服务播放

情绪识别规则

关键词示例 检测情绪
开心、高兴、太棒了、nice ? 开心
激动、兴奋、冲鸭、加油 ✨ 兴奋
难过、伤心、哭了、心痛 ? 悲伤
生气、愤怒、可恶、气死 ? 生气
惊讶、震惊、卧槽、居然 ? 惊讶
害怕、吓人、救命、妈呀 ? 恐惧
警告、注意、严肃、认真 ⚠️ 严肃
晚安、早上好、温柔、爱你 ? 温柔
没关系、淡定、稳住 ? 平静
搞笑、笑话、哈哈 ? 幽默
累了、困了、好累 ? 疲惫
紧张、焦虑、担心 ? 紧张

无匹配关键词时使用默认情绪:开心、热情、语速稍快

音量自动调节

播放时自动将 HomePod 音量设为 40%,播放完成后自动恢复原音量。

动态等待时间

等待时间根据生成的音频时长自动计算:音频时长 + 1秒

例如:3秒的语音 → 等待4秒后恢复音量

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

内容创作者
★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

Skill与智能体开发
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

资料检索与研究
★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

律师与法务Skill与智能体开发
★ 1