Call Duration & Background Audio
Two per-agent settings that shape the call’s outer envelope: a maximum call duration (graceful auto-end with farewell) and an ambient background audio track (mixed under the bot’s TTS for the duration of the call). Both are independent of each other and independent of the core agent prompt / voice / KB configuration.Call duration cap
A hard cap on how long any single call can run. When the limit is reached, the bot speaks a farewell and ends the session through the standard end-of-call path so transcript, recording, billing and thesession.completed webhook all fire normally.
Default
New agents default tomax_call_duration_secs = 600 (10 minutes).
You can override this between 60 and 3600 seconds (1 minute to 1
hour) per agent, or set it to null to disable the cap entirely.
Existing agents created before this default landed may still hold
null; opt them in by writing 600 via the agent update endpoint.
Behavior at the cap
The cap fires in two stages so the wind-down sounds natural:Setting the cap
null to disable:
Background audio
Ambient audio mixed under the bot’s TTS for the duration of the call (office chatter, café noise, white noise, etc.). Looped continuously, volume tunable per agent. Vocobase handles playback and format normalization automatically.Asset model
Two visibility tiers:- Platform-curated (
is_platform: true) — visible to every account. - Your own uploads (
owner_user_id: <yours>) — visible only to your account.
Uploading your own asset
Bytes go directly to a presigned upload URL. Vocobase then converts the file into the exact shape the bot needs and marks the asset ready. Accepted formats:wav, mp3, m4a, aac, ogg, opus, flac, webm, aiff.
Constraints (enforced server-side):
- Size: ≤ 5 MB.
- Duration: ≤ 5 minutes (loops anyway). An over-length file is never quietly
accepted — it either fails at
finalizeor, if its container declared no length for the check to read, ends upFAILEDwith the reason inerror_message.
Compressed formats go further inside the 5 MB ceiling than WAV does. A
one-minute bed is roughly 235 KB as a 32 kbps MP3 against roughly 937 KB as an
8 kHz WAV, so uploading MP3 rather than WAV buys you about four times the
length.
Attaching to an agent
background_audio_volume is 0.0-1.0. When null, the bot applies
a default of 0.3.
Removing background audio from an agent
Deleting an asset you uploaded
background_audio_id cleared).