360 Secure SkillHub
360 安全技能中心

voice-output

当用户提出语音回复请求时,先生成文本,再调用脚本经豆包 TTS 合成语音,并通过 macOS 内置 afplay 播放到 MOMAX BS6 音箱,默认音色为小何。依赖 Python3、TTS 凭据及宿主专属的脚本绝对路径。

olddirtybikertony
olddirtybikertony
热度 47.59
最近更新 2026-05-11 17:44:59
分类:自动化依赖:代码执行 / 第三方 API应用场景:API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add voice-output
Metadata
name
voice-output
description
Use when Tony says voice reply or asks to speak. Speaks the response aloud via Doubao TTS to MOMAX BS6.

voice-output skill

Speaks responses aloud when Tony requests voice reply.

Trigger conditions

When Tony says:

  • 「语音回复」
  • 「用话说」
  • 「voice reply」
  • 「语音」
  • Or any similar request to hear the response

How to trigger

  1. Generate the full text response
  2. Call voice_speak.py to speak it aloud:
python3 /Users/tony/.openclaw/workspace/skills/voice-output/scripts/voice_speak.py "text to speak"

Default voice

  • Model: zh_female_xiaohe_uranus_bigtts (小何)
  • TTS: Doubao TTS 2.0
  • Player: afplay (routes to MOMAX BS6)

Dependencies

  • Python3 (urllib, base64 built-in)
  • afplay (macOS built-in)
  • Doubao TTS credentials (APPID: 8982709936)