跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

openclaw voicecall

voicecall 是由 Plugin 提供的命令。只有在已安裝並啟用語音通話 Plugin 時才會出現。 當 Gateway 正在執行時,操作命令(callstartcontinuespeakdtmfendstatus)會路由到該 Gateway 的語音通話執行階段。如果無法連線到 Gateway,則會退回到獨立的 CLI 執行階段。

子命令

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。

設定與冒煙測試

setup

預設會列印人類可讀的就緒檢查。傳入 --json 可供指令稿使用。
openclaw voicecall setup
openclaw voicecall setup --json

smoke

執行相同的就緒檢查。除非同時提供 --to--yes,否則不會撥打真正的電話。
旗標預設值說明
-t, --to <phone>(無)即時冒煙測試要撥打的電話號碼。
--message <text>OpenClaw voice call smoke test.冒煙測試通話期間要說出的訊息。
--mode <mode>notify通話模式:notifyconversation
--yesfalse實際發起即時撥出通話。
--jsonfalse列印機器可讀的 JSON。
openclaw voicecall smoke
openclaw voicecall smoke --to "+15555550123"        # dry run
openclaw voicecall smoke --to "+15555550123" --yes  # live notify call
對於外部提供者(twiliotelnyxplivo),setupsmoke 需要來自 publicUrl、通道或 Tailscale 公開存取的公開 Webhook URL。local loopback 或私有 serve 後援會被拒絕,因為電信業者無法連到它。

通話生命週期

call

發起撥出的語音通話。
旗標必填預設值說明
-m, --message <text>(無)通話接通時要說出的訊息。
-t, --to <phone>設定 toNumber要撥打的 E.164 電話號碼。
--mode <mode>conversation通話模式:notify(訊息結束後掛斷)或 conversation(保持通話)。
openclaw voicecall call --to "+15555550123" --message "Hello"
openclaw voicecall call -m "Heads up" --mode notify

start

call 的別名,使用不同的預設旗標形式。
旗標必填預設值說明
--to <phone>(無)要撥打的電話號碼。
--message <text>(無)通話接通時要說出的訊息。
--mode <mode>conversation通話模式:notifyconversation

continue

說出訊息並等待回應。
旗標必填說明
--call-id <id>通話 ID。
--message <text>要說出的訊息。

speak

說出訊息,不等待回應。
旗標必填說明
--call-id <id>通話 ID。
--message <text>要說出的訊息。

dtmf

將 DTMF 數字傳送到進行中的通話。
旗標必填說明
--call-id <id>通話 ID。
--digits <digits>DTMF 數字(例如用於等待的 ww123456#)。

end

掛斷進行中的通話。
旗標必填說明
--call-id <id>通話 ID。

status

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

記錄與指標

tail

追蹤語音通話 JSONL 記錄。啟動時列印最後 --since 行,接著串流新寫入的行。
旗標預設值說明
--file <path>從 Plugin 儲存區解析calls.jsonl 的路徑。
--since <n>25追蹤前要列印的行數。
--poll <ms>250(最低 50)輪詢間隔,單位為毫秒。

latency

calls.jsonl 彙總回合延遲和聆聽等待指標。輸出是包含 recordsScannedturnLatencylistenWait 摘要的 JSON。
旗標預設值說明
--file <path>從 Plugin 儲存區解析calls.jsonl 的路徑。
--last <n>200(最低 1)要分析的最近記錄數量。

公開 Webhook

expose

啟用、停用或變更語音 Webhook 的 Tailscale serve/funnel 設定。
旗標預設值說明
--mode <mode>funneloffserve(tailnet)或 funnel(公開)。
--path <path>設定 tailscale.path--serve-path要公開的 Tailscale 路徑。
--port <port>設定 serve.port3334本機 Webhook 連接埠。
--serve-path <path>設定 serve.path/voice/webhook本機 Webhook 路徑。
openclaw voicecall expose --mode serve
openclaw voicecall expose --mode funnel
openclaw voicecall expose --mode off
只將 Webhook 端點公開給你信任的網路。可行時,優先使用 Tailscale Serve,而不是 Funnel。

相關