Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

edge-tts-voice-system边缘 tts 语音系统

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

2,851

周安装

120

GitHub Stars

公开资料未说明

下载量

998
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install edge-tts-voice-system

简介

OpenClaw 本地语音系统,使用 Whisper 进行入站转录,Edge TTS 生成出站语音回复。

  • 适用于私密语音交互、实时对话系统与无障碍辅助场景。
  • 通过 OpenClaw 安装并使用 clawhub 方式部署,需配置麦克风与扬声器设备。
  • 使用前请确认录音权限、隐私保护机制及是否允许本地模型加载与音频保存。
  • edge-tts-voice-system 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
edge-tts-voice-system
description
Local voice system for OpenClaw using faster-whisper for inbound transcription and Edge TTS for outbound replies. Use when you need private voice workflows, offline transcription, cached reply audio, or voice message handling after OpenClaw updates.

Edge TTS Voice System

A complete, privacy-focused voice system for OpenClaw that works entirely offline. No internet required, no data leaves your machine.

Features

  • Outbound replies: Edge TTS with cached audio output
  • Accurate STT: faster-whisper base model for speech recognition
  • Fully offline: No internet connection required
  • Privacy-focused: All processing happens locally
  • Easy integration: Ready-to-use Python and bash scripts
  • Voice conversations: Natural back-and-forth voice interactions

Quick Start

Installation

# Install the skill
clawhub install lessac_offline_voice_system

# Or manually from this directory
./scripts/install.sh

Basic Usage

from scripts.voice_handler import VoiceHandler

handler = VoiceHandler()

# Transcribe audio to text
text = handler.audio_to_text("voice_message.ogg")
print(f"You said: {text}")

# Generate voice response
audio_file = handler.text_to_audio("Hello, this is a voice response.")

Command Line

# Transcribe audio
./scripts/voice_integration.sh transcribe voice_message.ogg

# Generate TTS
./scripts/voice_integration.sh tts "Hello world" output.wav

# Full voice processing
./scripts/voice_integration.sh process voice_message.ogg

Components

1. Text-to-Speech (TTS)

  • Voice: Edge-supported voice (default en-IE-ConnorNeural)
  • Library: Edge TTS (edge-tts)
  • Quality: Natural speech with cached output
  • Sample rate: provider-defined

2. Speech-to-Text (STT)

  • Model: faster-whisper base
  • Accuracy: High, comparable to cloud services
  • Languages: Multi-language support (auto-detected)
  • Speed: ~2 seconds for typical audio

3. Audio Processing

  • Formats: OGG/Opus, WAV, MP3 (via ffmpeg)
  • Conversion: Automatic format handling
  • Quality: 16kHz mono for optimal recognition

Performance

  • TTS Load time: ~2 seconds (one-time)
  • TTS Generation: ~3-4 seconds
  • STT Transcription: ~2 seconds
  • Total response time: 5-7 seconds

Integration with OpenClaw

Automatic Voice Processing

When installed, the skill can be configured to automatically:

  1. Detect incoming voice messages
  2. Transcribe them silently
  3. Generate AI responses
  4. Convert responses to voice
  5. Send voice replies back

OpenClaw reply TTS configuration

The built-in OpenClaw reply TTS path is not the local voice pipeline used by this skill. This skill now uses a local Edge TTS reply path instead, with cached output stored under /root/.openclaw/tts/cache.

Default outbound voice:

  • en-IE-ConnorNeural

Relevant files:

  • tts_edge_wrapper.py
  • voice_handler.py
  • voice_integration.sh
  • scripts/install.sh

If you need to change the voice, set:

export OPENCLAW_EDGE_TTS_VOICE="en-IE-ConnorNeural"

or replace it with another Edge-supported voice.

Reinstall after OpenClaw updates

After an OpenClaw system update, rerun the installer to restore the voice stack:

cd /root/.openclaw/workspace/skills/lessac_offline_voice_system
./scripts/install.sh

This refreshes:

  • the Python venv dependencies (faster-whisper, edge-tts, soundfile)
  • the runtime cache directory
  • the local voice wrappers
  • the config file under /root/.openclaw/tts/config.json

Manual Integration

# In your OpenClaw agent or custom script
import sys
sys.path.append("/path/to/skill/scripts")
from voice_handler import VoiceHandler

class YourAgent:
    def __init__(self):
        self.voice = VoiceHandler()
    
    def handle_voice_message(self, audio_file):
        # Transcribe
        text = self.voice.audio_to_text(audio_file)
        
        # Generate response (your AI logic here)
        response = self.generate_response(text)
        
        # Convert to voice
        voice_response = self.voice.text_to_audio(response)
        
        return voice_response

Configuration

Voice Model Selection

The skill uses Edge TTS by default. To use a different voice:

  1. Set OPENCLAW_EDGE_TTS_VOICE to a supported Edge voice
  2. Re-run the installer to refresh the cache and wrappers

STT Model Selection

Change the faster-whisper model size in scripts/voice_handler.py:

  • "tiny": Fastest, lower accuracy
  • "base": Default, good balance
  • "small": Higher accuracy, slower
  • "medium": Best accuracy, slowest

Troubleshooting

Common Issues

  1. "No module named 'piper'"
   pip install piper-tts
  1. "ffmpeg not found"
   sudo apt-get install ffmpeg
  1. Out of memory with large models

- Use "tiny" or "base" STT model - Use a different Edge voice if needed

  1. Slow TTS generation

- First generation loads model (~2s) - Subsequent generations are faster (~0.3s per sentence)

Debug Mode

Enable debug output:

export VOICE_DEBUG=1
./scripts/voice_integration.sh process audio.ogg

Files

  • scripts/install.sh - Installation script
  • scripts/voice_handler.py - Main Python handler
  • scripts/piper_tts.py - Edge TTS wrapper
  • scripts/voice_integration.sh - Bash interface
  • references/voice_models.md - Voice model information
  • assets/ - Voice model files (downloaded during install)

Dependencies

  • Python 3.8+
  • ffmpeg
  • Python packages (installed automatically):

- faster-whisper - piper-tts - soundfile

License

Open source. See included LICENSE file.

Support

For issues or questions:

  1. Check the troubleshooting section
  2. Review the references/ directory
  3. Open an issue on the skill repository

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

97.68%
按下载量换算975

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills