Documentation

Chat

  • Getting Started
  • Installation
  • Core Concepts
  • Escalation System
  • Widget Keys
  • Secret Keys (sk_)
  • REST API
  • Channels & Integrations
  • Messaging Platform API

Voice

  • Voice Agent
  • Setup Guide
  • Phone Numbers
  • Outbound Campaigns

Platform

  • Billing & Pricing
  • Glossary
  • FAQ

VAD (Voice Activity Detection)

AI & ML

Detects when a person starts and stops speaking. Used for barge-in (interruption) handling and turn-taking in voice calls.

Voice Activity Detection (VAD) determines when someone is speaking versus silent. It's the foundational signal for natural turn-taking in voice conversations.


Signal flow
Audio frames

→

Energy calculation

→

Threshold check

→

Speech event

Events emitted
START_OF_SPEECH

Caller began talking

Triggers barge-in
END_OF_SPEECH

Caller stopped talking

Triggers response generation
INFERENCE_DONE

Frame processed

Continuous monitoring

Parameters
  • Energy threshold (0.02) — Volume level that counts as speech

  • Min speech duration (80ms) — Prevents noise from triggering false starts

  • Silence duration (400ms) — How long silence must last before END_OF_SPEECH

Ready to transform your customer experience?

Join businesses already using Sampan to serve customers 24/7 and boost revenue with AI.

sampan.club

AI-powered customer service for businesses.

SAMPAN TECH
202603046389 (003825593-A)

Product

© 2026 SAMPAN TECH, trading as Sampan Club (sampan.club). All rights reserved.