Speaker lock
# support
p
I just started building real time voice assistant with vapi. Can I know how to avoid vapi from detecting multiple user speech. like speaker diarization is there in providers like deepgram and speechmatics. but I want the agent to ignore other speakers and focus only on current speaker
c
Hi Piya, You can focus Vapi on the primary speaker using these options: • Use a transcriber with speaker-focusing or diarization features (Speechmatics supports speaker diarization; Deepgram has conversation-aware models). See Speechmatics docs: https://docs.vapi.ai/providers/transcriber/speechmatics • Enable Vapi’s Background Voice Filtering (proprietary real-time model) so the pipeline “focuses in” on the primary speaker and blocks other voices: https://docs.vapi.ai/how-vapi-works • Tune Stop Speaking Plan / endpointing so short acknowledgements or other speakers don’t trigger turns (adjust
numWords
,
voiceSeconds
, and smart endpointing provider). See speech config: https://docs.vapi.ai/customization/speech-configuration • Enable background denoising / increase confidence thresholds in the transcriber if loudspeaker/echo or other audio bleed is causing false detections (docs linked in speech-configuration and quickstart): https://docs.vapi.ai/quickstart and https://docs.vapi.ai/customization/speech-configuration Recommended flow: 1. Pick Speechmatics (or Deepgram Flux) and enable their primary-speaker/diarization features. 2. Turn on Vapi Background Voice Filtering. 3. Tune
stopSpeakingPlan
(e.g.,
numWords
>0 for ignoring brief backchannels,
voiceSeconds
~0.2 for VAD) and smart endpointing to match your user style.
p
thank you I will try it out and let you know
c
Hi, Thanks for replying back. Please do let us know if this solved your problem. Best, Aniah