mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
fix(voice-call): pace realtime Twilio audio
This commit is contained in:
committed by
Peter Steinberger
parent
19f948af2e
commit
7fc9a82dca
@@ -445,7 +445,7 @@ Enable the Voice Call plugin on the Gateway host, not on the Chrome node:
|
||||
```json5
|
||||
{
|
||||
plugins: {
|
||||
allow: ["google-meet", "voice-call"],
|
||||
allow: ["google-meet", "voice-call", "google"],
|
||||
entries: {
|
||||
"google-meet": {
|
||||
enabled: true,
|
||||
@@ -458,8 +458,24 @@ Enable the Voice Call plugin on the Gateway host, not on the Chrome node:
|
||||
enabled: true,
|
||||
config: {
|
||||
provider: "twilio",
|
||||
inboundPolicy: "allowlist",
|
||||
realtime: {
|
||||
enabled: true,
|
||||
provider: "google",
|
||||
instructions: "Join this Google Meet as an OpenClaw agent. Be brief.",
|
||||
toolPolicy: "safe-read-only",
|
||||
providers: {
|
||||
google: {
|
||||
silenceDurationMs: 500,
|
||||
startSensitivity: "high",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
google: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -472,8 +488,12 @@ secrets out of `openclaw.json`:
|
||||
export TWILIO_ACCOUNT_SID=AC...
|
||||
export TWILIO_AUTH_TOKEN=...
|
||||
export TWILIO_FROM_NUMBER=+15550001234
|
||||
export GEMINI_API_KEY=...
|
||||
```
|
||||
|
||||
Use `realtime.provider: "openai"` with the OpenAI provider plugin and
|
||||
`OPENAI_API_KEY` instead if that is your realtime voice provider.
|
||||
|
||||
Restart or reload the Gateway after enabling `voice-call`; plugin config changes
|
||||
do not appear in an already running Gateway process until it reloads.
|
||||
|
||||
|
||||
@@ -250,6 +250,9 @@ Current runtime behaviour:
|
||||
Defaults: API key from `realtime.providers.google.apiKey`,
|
||||
`GEMINI_API_KEY`, or `GOOGLE_GENERATIVE_AI_API_KEY`; model
|
||||
`gemini-2.5-flash-native-audio-preview-12-2025`; voice `Kore`.
|
||||
`sessionResumption` and `contextWindowCompression` default on for longer,
|
||||
reconnectable calls. Use `silenceDurationMs`, `startSensitivity`, and
|
||||
`endSensitivity` to tune faster turn-taking on telephony audio.
|
||||
|
||||
```json5
|
||||
{
|
||||
@@ -270,6 +273,8 @@ Current runtime behaviour:
|
||||
apiKey: "${GEMINI_API_KEY}",
|
||||
model: "gemini-2.5-flash-native-audio-preview-12-2025",
|
||||
voice: "Kore",
|
||||
silenceDurationMs: 500,
|
||||
startSensitivity: "high",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user