用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill stt-tts-service命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类
正在显示 SKILL.md
| name | stt-tts-service |
| description | Lightweight local speech-to-text and text-to-speech service for OpenClaw |
| version | 1.0.0 |
| author | community |
| tags | ["speech","audio","transcription","synthesis","voice"] |
A lightweight, local speech-to-text (STT) and text-to-speech (TTS) service that runs on any device connected to your OpenClaw server. Perfect for voice-enabled workflows and flexible resource allocation.
# Clone or download this skill
cd stt-tts-service
# Install dependencies
pip install -r requirements.txt
# Start the service
python main.py
docker build -t stt-tts-service .
docker run -p 8765:8765 stt-tts-service
Transcribe audio files to text.
curl -X POST http://localhost:8765/stt \
-F "audio=@recording.wav"
Response:
{
"text": "Hello, this is the transcribed text.",
"language": "en",
"duration": 3.5
}
Convert text to audio.
curl -X POST http://localhost:8765/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "voice": "default"}' \
--output speech.wav
Parameters:
text (required): Text to synthesizevoice (optional): Voice ID to usespeed (optional): Speech rate multiplier (0.5-2.0)Health check endpoint.
curl http://localhost:8765/health
List available models and voices.
curl http://localhost:8765/models
For real-time voice conversations, use WebSocket endpoints:
Stream audio and receive transcriptions in real-time.
const ws = new WebSocket('ws://localhost:8765/ws/stt');
// Send audio chunks (16kHz, 16-bit, mono PCM)
ws.send(audioBuffer);
// Receive transcriptions
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log(data.text); // Transcribed text
};
// Flush remaining audio
ws.send(JSON.stringify({action: "flush"}));
Send text and receive audio chunks in real-time.
const ws = new WebSocket('ws://localhost:8765/ws/tts');
// Send text to synthesize
ws.send(JSON.stringify({text: "Hello world"}));
// Receive audio chunks
ws.onmessage = (event) => {
if (event.data instanceof Blob) {
// Audio chunk - play it
playAudio(event.data);
}
};
Stream audio input and receive audio output for real-time voice-to-voice.
const ws = new WebSocket('ws://localhost:8765/ws/voice');
// Stream microphone audio
navigator.mediaDevices.getUserMedia({audio: true})
.then(stream => {
// Send audio chunks to WebSocket
});
// Handle responses
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
if (data.type === "transcript") {
// User's speech transcribed - send to your AI
sendToAI(data.text);
}
};
// Send AI response to be spoken
ws.send(JSON.stringify({action: "speak", text: aiResponse}));
Set environment variables or edit config.py:
| Variable | Default | Description |
|---|---|---|
STT_MODEL | base | Whisper model: tiny, base, small, medium |
TTS_ENGINE | auto | TTS engine: piper, pyttsx3, auto |
DEVICE | auto | Compute device: cpu, cuda, auto |
HOST | 0.0.0.0 | Server bind address |
PORT | 8765 | Server port |
| STT Model | Size | Speed | Accuracy |
|---|---|---|---|
| tiny | ~75MB | Fastest | Basic |
| base | ~150MB | Fast | Good |
| small | ~500MB | Medium | Better |
| medium | ~1.5GB | Slower | Best |
Register this service with your OpenClaw server:
openclaw service register http://device-ip:8765
Then use in your workflows:
- action: stt
input: ${audio_file}
output: transcription
- action: tts
input: "Hello, ${user_name}!"
output: greeting_audio