Home/Docs/Vapi

Capture from Vapi

Two channels and Hotato’s call ID. capture pulls, then scores offline, or score a WAV directly.

Enable dual-channel recording

  • Stereo / dual-channel recording, with caller and assistant on separate tracks; check Vapi’s docs.

Score it: auto-pull

Set VAPI_API_KEY + call ID: capture pulls it (only network call: that download), scores offline. --stack vapi = fix knobs; --expect yield/hold = interruption vs. backchannel.

bash
export VAPI_API_KEY=...
uvx hotato capture --stack vapi --call-id <id>

# no key? prove the capture→score loop on a bundled call
uvx hotato capture --stack vapi --demo

Or score a WAV you already have

Downloaded it? Confirm two-channel (e.g. ffprobe): caller on channel 0, assistant on channel 1.

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

Single mixed track? Capture legs separately upstream, or fall back to mono.

The honest gate

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