Cuộc gọi thoại (plugin)
Voice calls for OpenClaw via a plugin. Supports outbound notifications and multi-turn conversations with inbound policies. Các nhà cung cấp hiện tại:twilio(Programmable Voice + Media Streams)telnyx(Call Control v2)plivo(Voice API + XML transfer + GetInput speech)mock(dev/không mạng)
- Cài plugin
- Khởi động lại Gateway
- Cấu hình dưới
plugins.entries.voice-call.config - Dùng
openclaw voicecall ...hoặc công cụvoice_call
Nơi chạy (local vs remote)
Plugin Voice Call chạy bên trong tiến trình Gateway. Nếu bạn dùng Gateway từ xa, hãy cài/cấu hình plugin trên máy chạy Gateway, sau đó khởi động lại Gateway để tải plugin.Cài đặt
Tùy chọn A: cài từ npm (khuyến nghị)
Tùy chọn B: cài từ thư mục local (dev, không sao chép)
Cấu hình
Đặt cấu hình dướiplugins.entries.voice-call.config:
- Twilio/Telnyx yêu cầu URL webhook có thể truy cập công khai.
- Plivo yêu cầu URL webhook có thể truy cập công khai.
mocklà nhà cung cấp dev local (không gọi mạng).skipSignatureVerificationchỉ dành cho kiểm thử local.- Nếu bạn dùng ngrok gói miễn phí, đặt
publicUrlthành đúng URL ngrok; việc xác minh chữ ký luôn được áp dụng. - Nếu bạn dùng ngrok gói miễn phí, đặt
publicUrlthành đúng URL ngrok; việc xác minh chữ ký luôn được áp dụng. tunnel.allowNgrokFreeTierLoopbackBypass: trueallows Twilio webhooks with invalid signatures only whentunnel.provider="ngrok"andserve.bindis loopback (ngrok local agent). Chỉ dùng cho môi trường phát triển cục bộ.- Ngrok free tier URLs can change or add interstitial behavior; if
publicUrldrifts, Twilio signatures will fail. For production, prefer a stable domain or Tailscale funnel.
Bảo mật Webhook
When a proxy or tunnel sits in front of the Gateway, the plugin reconstructs the public URL for signature verification. Các tùy chọn này kiểm soát những header được chuyển tiếp nào là đáng tin cậy.webhookSecurity.allowedHosts cho phép danh sách host từ các header chuyển tiếp.
webhookSecurity.trustForwardingHeaders tin cậy các header chuyển tiếp mà không cần danh sách cho phép.
webhookSecurity.trustedProxyIPs chỉ tin cậy các header chuyển tiếp khi IP remote của
request khớp với danh sách.
Ví dụ với một host công khai ổn định:
TTS cho cuộc gọi
Voice Call uses the coremessages.tts configuration (OpenAI or ElevenLabs) for
streaming speech on calls. You can override it under the plugin config with the
same shape — it deep‑merges with messages.tts.
- Edge TTS bị bỏ qua cho cuộc gọi thoại (âm thanh điện thoại cần PCM; đầu ra Edge không ổn định).
- TTS cốt lõi được dùng khi bật Twilio media streaming; nếu không, cuộc gọi sẽ dùng giọng nói native của nhà cung cấp.
Thêm ví dụ
Chỉ dùng TTS cốt lõi (không ghi đè):Cuộc gọi đến
Inbound policy defaults todisabled. Để bật cuộc gọi inbound, hãy đặt:
responseModelresponseSystemPromptresponseTimeoutMs
CLI
Công cụ agent
Tên công cụ:voice_call
Hành động:
initiate_call(message, to?, mode?)continue_call(callId, message)speak_to_user(callId, message)end_call(callId)get_status(callId)
skills/voice-call/SKILL.md.
RPC của Gateway
voicecall.initiate(to?,message,mode?)voicecall.continue(callId,message)voicecall.speak(callId,message)voicecall.end(callId)voicecall.status(callId)