Home/Docs/Twilio

Capture from Twilio

Each leg, its own channel, and Hotato’s recording SID. capture pulls, then scores offline, or score a WAV directly.

Record dual-channel

  • RecordingChannels=dual puts inbound and outbound/agent legs on separate channels; check Twilio’s docs.

Score it: auto-pull

Twilio credentials + recording SID: capture fetches the recording (only network call: that download), scores offline. --expect yield/hold = interruption vs. backchannel.

bash
export TWILIO_ACCOUNT_SID=...
export TWILIO_AUTH_TOKEN=...
uvx hotato capture --stack twilio --recording-sid RE...

Or score a WAV you already have

Fetched it? Point Hotato at the file: caller on channel 0, agent on channel 1 (--agent-channel if Twilio flips it).

bash
uvx hotato run --stereo call.wav --stack generic --expect yield

Caller on channel 1 instead? Pass --caller-channel 1 --agent-channel 0.

The honest gate

Dual-channel = real overlap numbers. Mono-mixed? Add --onset <seconds>, and treat as degraded.