适用于macOS的Discord本地STT与TTS安装程序 - Openclaw Skills

作者:互联网

2026-03-31

AI教程

什么是 Discord本地STT与TTS安装程序?

discord-local-stt-tts-installer是一款技术工具,旨在自动化部署和维护Openclaw Skills生态系统中的语音功能。该工具专门针对macOS,管理discord-local-stt-tts插件的安装,提供本地语音转文本(STT)和文本转语音(TTS)功能。通过在本地处理音频,用户可以构建高性能的Discord语音代理,尊重隐私并通过避免云端处理来降低延迟。

该安装程序简化了从GitHub获取最新版本、管理目录结构以及处理初始构建依赖的过程。对于希望在Discord代理中集成复杂语音交互,同时保持对数据和语音引擎完全控制的开发者来说,这是一个必不可少的组件。

下载入口:https://github.com/openclaw/skills/tree/main/skills/vilmire/discord-local-stt-tts-installer

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install discord-local-stt-tts-installer

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 discord-local-stt-tts-installer。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Discord本地STT与TTS安装程序 应用场景

  • 在macOS机器上自动部署本地语音处理插件。
  • 保持Discord语音助手与GitHub发布的最新功能同步。
  • 设置以隐私为核心的语音交互,无需外部API调用即可进行语音合成或识别。
  • 快速原型化需要实时语音反馈的基于Discord的AI代理。
Discord本地STT与TTS安装程序 工作原理
  1. 安装程序从官方discord-local-stt-tts GitHub仓库识别最新的发布版本压缩包。
  2. 它对本地目录中现有的任何插件文件进行备份,以确保安全的更新路径。
  3. 该技能提取源代码并将其直接安装到~/.openclaw/openclaw-extensions/plugins/文件夹中。
  4. 如果系统中检测到pnpm,安装程序会自动运行依赖安装和构建命令。
  5. 完成后,用户重启Openclaw网关以激活新安装或更新后的语音功能。

Discord本地STT与TTS安装程序 配置指南

要在Openclaw Skills框架内使用此安装程序,请确保您的macOS系统已安装curl、python3、unzip和ffmpeg。

在终端中执行以下命令:

bash bin/install.sh
openclaw gateway restart

注意:安装完成后,您必须在openclaw.json配置文件中手动启用该插件。如果使用Apple Speech,请确保在macOS系统设置中授予麦克风和语音识别权限。

Discord本地STT与TTS安装程序 数据架构与分类体系

安装程序按照标准的Openclaw Skills目录结构组织文件:

路径 描述
~/.openclaw/openclaw-extensions/plugins/discord-local-stt-tts 插件代码和资源的主要安装路径。
bin/install.sh 负责执行和逻辑的Shell脚本。
openclaw.json (手动更新) 必须启用该插件的配置文件。
name: discord-local-stt-tts-installer
description: (macOS) Discord voice assistant installer. Install/update discord-local-stt-tts (Discord voice, Discord local, local STT + local TTS) from GitHub Releases.

discord-local-stt-tts-installer (macOS)

ClawHub skill that installs/updates the discord-local-stt-tts OpenClaw plugin.

  • Plugin repo: https://github.com/vilmire/discord-local-stt-tts
  • Install path: ~/.openclaw/openclaw-extensions/plugins/discord-local-stt-tts

Supported platforms

  • macOS only

Requirements

  • curl
  • python3 (used by the installer; also needed for some local STT engines)
  • unzip
  • ffmpeg (required by the plugin runtime)
  • Optional: pnpm (if you want the installer to attempt a build)

macOS permissions

If you use Apple Speech (apple-speech) local STT, macOS may require:

  • System Settings → Privacy & Security → Speech Recognition
  • System Settings → Privacy & Security → Microphone

Install / Update

bash bin/install.sh
openclaw gateway restart

What the installer does

  1. Downloads the latest GitHub Release source zipball
  2. Backs up any existing plugin folder
  3. Installs into the OpenClaw extensions plugin directory
  4. If pnpm is available, attempts pnpm i && pnpm build (best-effort)

Notes

  • This skill does not modify your openclaw.json. You still need to enable/configure the plugin.

相关推荐