Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

phone-voice电话语音

Agent Skill

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

总安装

93,226

周安装

3,735

GitHub Stars

4

下载量

30,179
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install phone-voice

简介

使用 Twilio 通过电话将 ElevenLabs Agent 连接到您的 OpenClaw。包括来电显示身份验证、语音 PIN 安全、呼叫筛选、内存注入和成本跟踪。

SKILL.md

name
phone-voice
description
Connect ElevenLabs Agents to your OpenClaw via phone with Twilio. Includes caller ID auth, voice PIN security, call screening, memory injection, and cost tracking.
version
2.0.0
author
Fred (@FredMolty)

Phone Voice Integration

Turn your OpenClaw into a phone-callable assistant with ElevenLabs Agents + Twilio.

What you get:

  • 📞 Call your bot from any phone
  • 🔐 Caller ID authentication + voice PIN security
  • 🛡️ Call screening (whitelist-based)
  • 🧠 Full memory context (loads MEMORY.md, USER.md)
  • 💰 Cost tracking per call
  • 📝 Call transcripts with summaries
  • ⏱️ Rate limiting
  • 🌐 Permanent tunnel (Cloudflare) or temporary (ngrok)

Architecture

Phone → Twilio → ElevenLabs Agent → Your Bridge → Anthropic Claude → OpenClaw Tools
                                          ↓
                                    Memory Context
                                    (MEMORY.md, USER.md)

Flow:

  1. Caller dials your Twilio number
  2. Twilio routes to ElevenLabs Agent
  3. Agent sends chat completions to your bridge (mimics OpenAI API)
  4. Bridge translates to Anthropic, injects context from memory files
  5. Claude response → ElevenLabs TTS → caller hears it

Prerequisites

  • OpenClaw installed and running
  • ElevenLabs account + API key
  • Twilio account + phone number
  • Anthropic API key
  • Cloudflare tunnel or ngrok (for exposing localhost)

Setup

1. Enable Chat Completions in OpenClaw

Not needed for this skill — the bridge bypasses OpenClaw and calls Claude directly. This gives you more control over memory injection and cost tracking.

2. Create the Bridge Server

The bridge is a FastAPI server that:

  • Accepts OpenAI-compatible /v1/chat/completions requests from ElevenLabs
  • Injects memory context (MEMORY.md, USER.md, live data)
  • Calls Anthropic Claude API
  • Streams responses back in OpenAI format
  • Logs costs and transcripts

Key files:

  • server.py — FastAPI app with /v1/chat/completions endpoint
  • fred_prompt.py — System prompt builder (loads memory files)
  • .env — Secrets (API keys, tokens, whitelist)
  • contacts.json — Caller whitelist for screening

3. Set Up Cloudflare Tunnel (Recommended)

Permanent, secure alternative to ngrok:

# Install cloudflared
brew install cloudflare/cloudflare/cloudflared

# Login and configure
cloudflared tunnel login
cloudflared tunnel create <tunnel-name>

# Run the tunnel
cloudflared tunnel --url http://localhost:8013 run <tunnel-name>

Add a CNAME in Cloudflare DNS:

voice.yourdomain.com → <tunnel-id>.cfargotunnel.com

Or use ngrok (temporary):

ngrok http 8013

4. Configure ElevenLabs Agent

Option A: Manual (UI)

  1. Go to ElevenLabs dashboard → Conversational AI
  2. Create new agent
  3. Under LLM settings → Custom LLM
  4. Set URL: https://voice.yourdomain.com/v1/chat/completions
  5. Add header: Authorization: Bearer <YOUR_BRIDGE_TOKEN>

Option B: Programmatic (API)

# Step 1: Store your bridge auth token as a secret
curl -X POST https://api.elevenlabs.io/v1/convai/secrets \
  -H "xi-api-key: YOUR_ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "new",
    "name": "bridge_auth_token",
    "value": "YOUR_BRIDGE_AUTH_TOKEN"
  }'

# Response: {"secret_id": "abc123..."}

# Step 2: Create the agent
curl -X POST https://api.elevenlabs.io/v1/convai/agents/create \
  -H "xi-api-key: YOUR_ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "conversation_config": {
      "agent": {
        "language": "en",
        "prompt": {
          "llm": "custom-llm",
          "prompt": "You are a helpful voice assistant.",
          "custom_llm": {
            "url": "https://voice.yourdomain.com/v1/chat/completions",
            "api_key": {"secret_id": "abc123..."}
          }
        }
      }
    }
  }'

5. Connect Twilio Phone Number

In ElevenLabs agent settings:

  1. Go to Phone section
  2. Enter Twilio Account SID and Auth Token
  3. Select your Twilio phone number
  4. Save

Done! Your bot now answers that phone number.

Security Features

Caller ID Authentication

Recognizes whitelisted numbers automatically:

// contacts.json
{
  "+12505551234": {
    "name": "Alice",
    "role": "family"
  }
}

Voice PIN Challenge

For unknown callers or high-security actions:

VOICE_PIN = "banana"  # Set in .env

Caller must say the PIN to proceed.

Call Screening

Unknown numbers get a receptionist prompt:

"This is Fred's assistant. I can take a message or help with general questions."

Rate Limiting

Configurable per-hour limits:

RATE_LIMIT_PER_HOUR = 10

Prevents abuse and runaway costs.

Memory Injection

The bridge auto-loads context before each call:

Files read:

  • MEMORY.md — Long-term facts about user, projects, preferences
  • USER.md — User profile (name, location, timezone)
  • Recent call transcripts (cross-call memory)

Live data injection:

  • Current time/date
  • Weather (optional, via API)
  • Calendar events (optional, via gog CLI)

All injected into the system prompt before Claude sees the conversation.

Cost Tracking

Every call logs to memory/voice-calls/costs.jsonl:

{
  "call_sid": "CA123...",
  "timestamp": "2026-02-03T10:30:00",
  "caller": "+12505551234",
  "duration_sec": 45,
  "total_cost_usd": 0.12,
  "breakdown": {
    "twilio": 0.02,
    "elevenlabs": 0.08,
    "anthropic": 0.02
  }
}

Run analytics on the JSONL to track monthly spend.

Usage Example

Call your bot:

  1. Dial your Twilio number
  2. If you're whitelisted → casual conversation starts
  3. If you're unknown → receptionist mode
  4. Ask it to check your calendar, send a message, set a reminder, etc.

Outbound calling (optional):

curl -X POST https://voice.yourdomain.com/call/outbound \
  -H "Authorization: Bearer <BRIDGE_TOKEN>" \
  -d '{"to": "+12505551234", "message": "Reminder: dentist at 3pm"}'

Configuration Options

Environment variables (.env):

ANTHROPIC_API_KEY=sk-ant-...
ELEVENLABS_API_KEY=sk_...
ELEVENLABS_AGENT_ID=agent_...
TWILIO_ACCOUNT_SID=AC...
TWILIO_AUTH_TOKEN=...
TWILIO_NUMBER=+1...
LLM_BRIDGE_TOKEN=<random-secure-token>
VOICE_PIN=<your-secret-word>
CLAWD_DIR=/path/to/clawd

Whitelist (contacts.json):

{
  "+12505551234": {"name": "Alice", "role": "family"},
  "+12505555678": {"name": "Bob", "role": "friend"}
}

Advanced: Office Hours

Restrict calls to business hours:

# In server.py
OFFICE_HOURS = {
    "enabled": True,
    "timezone": "America/Vancouver",
    "weekdays": {"start": "09:00", "end": "17:00"},
    "weekends": False
}

Outside hours → voicemail prompt.

Debugging

Test the bridge directly:

curl -X POST https://voice.yourdomain.com/v1/chat/completions \
  -H "Authorization: Bearer <BRIDGE_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": false
  }'

Check logs:

tail -f ~/clawd/memory/voice-calls/bridge.log

Verify Twilio webhook:

  1. Call your number
  2. Check Twilio console → Call logs → Webhook status
  3. Should see 200 responses from ElevenLabs

Cost Estimates

Per-minute breakdown:

  • Twilio: ~$0.01/min (inbound) + carrier fees
  • ElevenLabs TTS: ~$0.05/min (varies by voice quality)
  • Anthropic Claude: ~$0.01/min (depends on token usage)
  • Total: ~$0.07-0.10/min (~$4-6/hour of talk time)

Use rate limiting and call screening to control costs.

Comparison: This vs Basic Tutorial

ElevenLabs official tutorial:

  • ✅ Basic integration
  • ❌ No security
  • ❌ No memory persistence
  • ❌ No cost tracking
  • ❌ Temporary ngrok URL

This skill (Phone Voice v2.0):

  • ✅ All of the above
  • ✅ Caller ID + PIN security
  • ✅ Cross-call memory
  • ✅ Cost tracking & analytics
  • ✅ Permanent tunnel (Cloudflare)
  • ✅ Rate limiting
  • ✅ Call screening
  • ✅ Transcript logging

Links

  • ElevenLabs Agents: https://elevenlabs.io/conversational-ai
  • Twilio: https://www.twilio.com/
  • Cloudflare Tunnels: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/
  • Reference implementation: (Available on request — DM @FredMolty)

License

MIT — use freely, credit appreciated.


Built by Fred (@FredMolty) — running on OpenClaw since 2026.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

89.69%
按下载量换算27,068

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills