Skip to content

Voicecall

voicecall 是一個由外掛提供的指令。只有在安裝並啟用 voice-call 外掛後才會顯示。

當 Gateway 正在執行時,操作指令(callstartcontinuespeakdtmfendstatus)會路由至該 Gateway 的 voice-call 執行時期。如果無法連線到任何 Gateway,它們會回退到獨立的 CLI 執行時期。

Terminal window
openclaw voicecall setup [--json]
openclaw voicecall smoke [-t <phone>] [--message <text>] [--mode <m>] [--yes] [--json]
openclaw voicecall call -m <text> [-t <phone>] [--mode <m>]
openclaw voicecall start --to <phone> [--message <text>] [--mode <m>]
openclaw voicecall continue --call-id <id> --message <text>
openclaw voicecall speak --call-id <id> --message <text>
openclaw voicecall dtmf --call-id <id> --digits <digits>
openclaw voicecall end --call-id <id>
openclaw voicecall status [--call-id <id>] [--json]
openclaw voicecall tail [--file <path>] [--since <n>] [--poll <ms>]
openclaw voicecall latency [--file <path>] [--last <n>]
openclaw voicecall expose [--mode <m>] [--path <p>] [--port <port>] [--serve-path <p>]
子指令描述
setup顯示提供者和 webhook 的就緒檢查。
smoke執行就緒檢查;僅在使用 --yes 時撥打實際測試通話。
call發起外語音通話。
startcall 的別名,其中 --to 為必要項,--message 為選用項。
continue說出一則訊息並等待下一個回應。
speak說出一則訊息而不等待回應。
dtmf傳送 DTMF 數字至進行中的通話。
end掛斷進行中的通話。
status檢查進行中的通話(或透過 --call-id 檢查單一通話)。
tail追蹤 calls.jsonl(在提供者測試期間很有用)。
latency彙總來自 calls.jsonl 的延遲指標。
expose切換 webhook 端點的 Tailscale serve/funnel。

預設會列印人類可讀的就緒檢查。針對腳本請傳入 --json

Terminal window
openclaw voicecall setup
openclaw voicecall setup --json

執行相同的就緒檢查。除非同時存在 --to--yes,否則不會撥打實際電話。

旗標預設值描述
-t, --to <phone>(無)即時煙霧測試要撥打的電話號碼。
--message <text>OpenClaw voice call smoke test.在煙霧測試通話期間要說出的訊息。
--mode <mode>notify通話模式:notifyconversation
--yesfalse實際撥打即時外撥電話。
--jsonfalse列印機器可讀取的 JSON。
Terminal window
openclaw voicecall smoke
openclaw voicecall smoke --to "+15555550123" # dry run
openclaw voicecall smoke --to "+15555550123" --yes # live notify call

發起外撥語音通話。

旗標必填預設值描述
-m, --message <text>(無)通話連線時要說出的訊息。
-t, --to <phone>config toNumber要撥打的 E.164 電話號碼。
--mode <mode>conversation通話模式:notify (訊息說完後掛斷) 或 conversation (保持連線)。
Terminal window
openclaw voicecall call --to "+15555550123" --message "Hello"
openclaw voicecall call -m "Heads up" --mode notify

call 的別名,具有不同的預設旗標形狀。

旗標必填預設值描述
--to <phone>(無)要撥打的電話號碼。
--message <text>(無)通話連線時要說出的訊息。
--mode <mode>conversation通話模式:notifyconversation

說出訊息並等待回應。

旗標必填描述
--call-id <id>通話 ID。
--message <text>要朗讀的訊息。

朗讀訊息而不等待回應。

標誌必要說明
--call-id <id>通話 ID。
--message <text>要朗讀的訊息。

向進行中的通話發送 DTMF 數字。

標誌必要說明
--call-id <id>通話 ID。
--digits <digits>DTMF 數字(例如 ww123456# 代表等待)。

掛斷進行中的通話。

標誌必要說明
--call-id <id>通話 ID。

檢查進行中的通話。

標誌預設值說明
--call-id <id>(無)將輸出限制為單一通話。
--jsonfalse列印機器可讀的 JSON。
Terminal window
openclaw voicecall status
openclaw voicecall status --json
openclaw voicecall status --call-id <id>

追蹤 voice-call JSONL 日誌。啟動時列印最後 --since 行,然後隨著寫入串流新行。

標誌預設值說明
--file <path>從插件儲存庫解析calls.jsonl 的路徑。
--since <n>25開始追蹤前要列印的行數。
--poll <ms>250(最少 50)輪詢間隔(毫秒)。

總結 calls.jsonl 中的 turn-latency 和 listen-wait 指標。輸出是包含 recordsScannedturnLatencylistenWait 總結的 JSON。

標誌預設值說明
--file <path>從插件儲存庫解析calls.jsonl 的路徑。
--last <n>200(最少 1)要分析的最近記錄數量。

啟用、停用或變更語音 webhook 的 Tailscale serve/funnel 設定。

標誌預設值說明
--mode <mode>funneloffserve (tailnet) 或 funnel (public)。
--path <path>設定 tailscale.path--serve-path要暴露的 Tailscale 路徑。
--port <port>設定 serve.port3334本機 webhook 連接埠。
--serve-path <path>設定 serve.path/voice/webhook本機 webhook 路徑。
Terminal window
openclaw voicecall expose --mode serve
openclaw voicecall expose --mode funnel
openclaw voicecall expose --mode off