技能标识:whisper-piper-voice
Set up and run a local voice pipeline combining Whisper STT (speech-to-text) and Piper TTS (text-to-speech) as a single HTTP server. Use when asked to set up voice capabilities, transcribe audio, generate speech, configure STT/TTS, or build a voice assistant pipeline. Handles both directions — audio-to-text and text-to-audio — on a single port. Runs fully offline on CPU or GPU (NVIDIA CUDA). NOT for cloud-based TTS (ElevenLabs, Google TTS) — this is 100% local and free.
将本地STT(语音转文本)和TTS(文本转语音)整合为单一HTTP服务器。零云依赖。
音频输入 → POST /transcribe → Whisper (faster-whisper) → JSON {文本, 语言}
文本输入 → POST /speak → Piper TTS → ffmpeg → audio/ogg (Opus)
两个端点运行在同一个Python进程中,共用同一端口(默认:9998)。
转写(音频→文本):
bash
curl -X POST -F file=@message.ogg http://HOST:9998/transcribe
语音合成(文本→音频):
bash
curl -X POST -H Content-Type: application/json \
-d {text: Hallo Welt, speaker: 4} \
http://HOST:9998/speak -o response.ogg
| 参数 | 默认值 | 描述 |
|---|---|---|
| --port | 9998 | 服务器端口 |
| --whisper-model |
Whisper: CPU推荐使用small(性能均衡),GPU推荐使用medium(无需large-v3开销即可获得最佳质量)。
Piper语音: 浏览 https://rhasspy.github.io/piper-samples/ — 下载 .onnx 和 .onnx.json 文件。
阅读 references/setup-guide.md 了解systemd服务配置、所有语音选项、模型对比表以及OpenClaw集成详情。
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 whisper-piper-voice-1776051073 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 whisper-piper-voice-1776051073 技能
skillhub install whisper-piper-voice-1776051073
文件大小: 5.45 KB | 发布时间: 2026-4-14 11:13