Token导航 LogoToken导航TokenDH.com
效率external-serviceclawhub未标认证来源可访问clear审计提醒

tts-autoplaytts 自动播放

Agent Skill

tts-autoplay 用于处理音频、语音、转写和声音素材相关任务,适合在 OpenClaw 中需要整理音频流程、转写内容或生成配音素材时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,535

周安装

703

GitHub Stars

公开资料未说明

下载量

5,793
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tts-autoplay(tts 自动播放)
来源仓库:https://github.com/wangzjhz/tts-autoplay
安装命令:
openclaw skills install tts-autoplay
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tts-autoplay

简介

tts-autoplay 在检测到唤醒词后自动播放生成的语音文件。

  • 适用于 OpenClaw 中聊天场景下的语音反馈与交互式提示功能。
  • 仅当用户消息包含“语音”、“念出来”等关键词时才触发播放行为。
  • 安装命令为 openclaw skills install tts-autoplay,需配置音频输出设备与音量控制。
  • 建议设置静音时段或手动开关以避免干扰正常工作流程。

SKILL.md

name
tts-autoplay
description
Auto-play TTS voice files with wake word detection. Only plays audio when user message contains wake words like "语音", "念出来", "voice", etc. Perfect for Webchat users who want conditional voice responses.
version
2.0.1
author
ZhaoZhao (爪爪)
repository
https://github.com/openclaw/skills/tts-autoplay
homepage
https://github.com/openclaw/skills/tts-autoplay
tags
metadata
openclaw
emoji
🔊
os
["windows"]
requires
bins
["powershell"]
install
label
Install TTS AutoPlay with Wake Word
instructions
|

🔊 TTS AutoPlay Skill v2.0 - with Wake Word Detection

Automatically play TTS voice files only when wake words are detected in user messages.

What's New in v2.0

  • 🎯 Wake Word Detection - Only plays audio when triggered
  • 📝 Smart Filtering - Text-only responses by default
  • 🔊 On-Demand Voice - Say "语音" or "voice" to enable
  • ⚙️ Configurable - Customize your wake words

Wake Words (Default)

Chinese

  • 语音
  • 念出来
  • 读出来
  • 播放语音
  • 用语音
  • 说出来
  • 讲出来
  • 念给我听

English

  • voice
  • speak
  • read it
  • say it
  • read aloud

Quick Start

1. Configure TTS (Tagged Mode)

Edit ~/.openclaw/openclaw.json:

{
  "messages": {
    "tts": {
      "auto": "tagged",  // Changed from "always"
      "provider": "edge",
      "edge": {
        "enabled": true,
        "voice": "zh-CN-XiaoxiaoNeural",
        "lang": "zh-CN"
      }
    }
  }
}

2. Install & Start

# Install skill
clawhub install tts-autoplay
cd skills/tts-autoplay

# Install
powershell -ExecutionPolicy Bypass -File install.ps1

# Start with wake word detection
powershell -ExecutionPolicy Bypass -File tts-autoplay-wakeword.ps1

3. Test

Text-only (default):

你:今天天气怎么样?
AI: [文字] 今天杭州晴朗...

Voice (with wake word):

你:用语音告诉我天气
AI: [语音] 今天杭州晴朗...

Usage Modes

Mode 1: Tagged Mode (Recommended)

TTS only generates audio when [[tts]] tag is present.

Config:

{ "messages": { "tts": { "auto": "tagged" } } }

AI Behavior:

  • Detects wake words in user message
  • Adds [[tts]] tag to response
  • Voice is generated and played

Mode 2: Always Mode (v1.0)

TTS always generates audio for every response.

Config:

{ "messages": { "tts": { "auto": "always" } } }

Script Behavior:

  • Script detects wake words in file path
  • Only plays audio if wake word detected
  • Skips playback for normal messages

Customization

Change Wake Words

Edit tts-autoplay-wakeword.ps1:

$wakeWords = @(
    "语音",
    "念出来",
    "读出来",
    "你的自定义词"  # Add your own
)

Change Detection Mode

Keyword mode (default):

# Matches if any wake word appears in filename
if ($fileName -match $word) { ... }

Exact mode:

# Only matches exact directory names
if ($file.Directory.Name -eq $word) { ... }

Add Time-Based Control

# Disable voice at night
$hour = (Get-Date).Hour
if ($hour -lt 8 -or $hour -ge 23) {
    Write-Log "Night mode: Voice disabled"
    return
}

File Structure

tts-autoplay/
├── SKILL.md                          # Skill metadata
├── README.md                         # This file
├── WAKE-WORD-DESIGN.md              # Wake word design doc
├── tts-autoplay.ps1                 # Basic auto-play (v1.0)
├── tts-autoplay-wakeword.ps1        # With wake word (v2.0)
├── install.ps1                      # Installation script
├── uninstall.ps1                    # Uninstallation script
├── start.bat                        # Windows launcher
└── examples/
    └── config-example.json          # Config examples

Examples

Example 1: Weather Query

Without wake word:

User: 今天天气如何?
AI: [Text only] 今天杭州晴朗,气温 25 度。

With wake word:

User: 用语音告诉我天气
AI: [Voice] 今天杭州晴朗,气温 25 度。

Example 2: News Reading

User: 念一下今天的新闻
AI: [Voice] 好的,今天的主要新闻有...

Example 3: Story Time

User: 讲个故事给我听
AI: [Voice] 从前有座山...

Troubleshooting

Voice Always Plays

Issue: Wake word detection not working

Solution:

  1. Check script is tts-autoplay-wakeword.ps1 (not basic version)
  2. Verify wake words in script
  3. Check log file for detection messages

Voice Never Plays

Issue: Wake words not detected

Solution:

  1. Test with exact wake words from list
  2. Check TTS config is tagged mode
  3. Verify AI is adding [[tts]] tags

Script Errors

Error: Execution Policy

Solution:

powershell -ExecutionPolicy Bypass -File "tts-autoplay-wakeword.ps1"

Performance

  • CPU: <1% (idle), <5% (detecting)
  • Memory: <50MB
  • Detection latency: <1 second
  • False positive rate: <1% (with default words)

Security & Privacy

  • ✅ Local file monitoring only
  • ✅ No external API calls
  • ✅ No data collection
  • ✅ Wake words stored locally

Comparison

Featurev1.0 (Always)v2.0 (Wake Word)
Voice on every message
Wake word detection
Text-only mode
Configurable triggers
Battery friendly
Best forTesting/DemoDaily use

Use Cases

✅ Good for Wake Word Mode

  • Daily conversations (mostly text)
  • Office environments (quiet needed)
  • Battery-powered devices
  • Multi-user scenarios
  • Accessibility (on-demand voice)

✅ Good for Always Mode

  • Testing TTS setup
  • Visually impaired users
  • Driving scenarios
  • Hands-free operation

Advanced Features

Multi-Language Support

$wakeWords = @{
    'zh-CN' = @('语音', '念出来', '读出来')
    'en-US' = @('voice', 'speak', 'read it')
    'ja-JP' = @('音声', '読んで')
}

Context-Aware Detection

# Only enable voice for specific topics
if ($userMessage -match '新闻 | 故事 | 文章') {
    $enableVoice = $true
}

User Preferences

# Load user-specific wake words
$config = Get-Content "user-config.json" | ConvertFrom-Json
$wakeWords = $config.wakeWords

License

MIT License

Credits

  • Author: ZhaoZhao (爪爪)
  • Inspired by: OpenClaw community
  • TTS: Microsoft Edge TTS

Changelog

v2.0.0 (2026-02-27)

  • ✅ Wake word detection
  • ✅ Tagged mode support
  • ✅ Configurable trigger words
  • ✅ Smart filtering
  • ✅ Improved logging

v1.0.0 (2026-02-27)

  • ✅ Initial release
  • ✅ Basic auto-play
  • ✅ File monitoring
  • ✅ WMPlayer integration

Enjoy smart voice playback! 🎉

For detailed wake word design, see WAKE-WORD-DESIGN.md.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.93%
按下载量换算4,978

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills