<#C088ZNU7QQ5|ask-ai> i am using livekit plugin va...
# ask-ai
s
#ask-ai i am using livekit plugin vad , it is not able to detect the kids voice.. i am using stt of deepgram. what might be the issue? i am using this parameters,vad=silero.VAD.load( min_speech_duration=0.03, # Catch very short utterances min_silence_duration=0.3, # Less waiting time activation_threshold=0.2, # CRITICAL for low volume sample_rate=16000, # 16kHz sample rate max_buffered_speech=60.0, # Buffer up to 60 seconds ),
t
Thanks for reaching out, Karthik. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for sharing your concerns about detecting children's voices using the LiveKit plugin with Silero VAD and Deepgram STT. I understand how important it is to capture those voices accurately! The challenge here often comes from the fact that the Silero VAD model is mainly trained on adult voices, so it might have a harder time recognizing the higher pitch, varied intonation, and shorter speech patterns typical of children. To help improve detection, you might try tweaking a few parameters to better match children's speech: • Lower the
activationThreshold
(for example, try 0.3–0.4) to make it more sensitive to quieter sounds. • Reduce
minSpeechDuration
so it can pick up on very short utterances. • Adjust
minSilenceDuration
to a smaller value to prevent cutting off fragmented speech too soon. Here’s a quick example you could try:
Copy code
vad.updateOptions({
  activationThreshold: 0.3,
  minSpeechDuration: 30,
  minSilenceDuration: 300,
});
These changes can often help make the detection more sensitive, but please keep in mind that the main hurdle is the model’s training—it wasn’t specifically designed with children's voices in mind. If you’re still finding it tricky to get consistent results, you might want to explore a custom VAD solution trained on datasets that include children’s voices. Unfortunately, the current Silero-based setup in LiveKit doesn’t support retraining or swapping in a domain-specific model through its APIs. Please feel free to reach out if you want to discuss this further or need help exploring other options—I’m here to support you! Sources: Silero VAD plugin | LiveKit Docs | AI Agents Framework | livekit/livekit_composite | DeepWiki | .cursor/rules/agent-core.mdc | livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/__init__.py
s
i want the best stt which works with [silero-vad](https://github.com/snakers4/silero-vad) , where it can detect the kids voice from age 4-13. give me open source and paid models. i am working with livekit, these must work in livekit infrastrcture
t
When it comes to detecting children's voices (ages 4-13) with Silero VAD in LiveKit, I’m happy to share some STT models that work well: Paid Models: • Deepgram Nova-2 Conversational AI: Designed to capture natural dialogue patterns smoothly. • Cartesia Ink Whisper: Supports an impressive 98 languages and performs reliably across different vocal ranges. • AssemblyAI Universal-Streaming: Great for real-time transcription, though it’s English-only. Open-Source Options: • Silero VAD itself is open-source and runs locally on CPU, which is quite handy. • LiveKit Agents Framework is also open-source and lets you contribute plugins. While these models are compatible, it’s important to note that none are specifically tailored for children’s voices. To get the best accuracy, you might want to: • Try out several models using sample audio from your target age group to see what fits best. • Adjust settings like
activationThreshold
and
minSpeechDuration
to better capture children’s speech nuances. • Look into custom pediatric STT models if you find any that suit your needs. If you’d like, I’d be more than happy to guide you through setting up a testing framework or help you implement these models in LiveKit. Just let me know! Sources: Speech-to-text (STT) models | LiveKit Docs | livekit-plugins/livekit-plugins-cartesia/livekit/plugins/cartesia/models.py | Silero VAD plugin | LiveKit Docs | README.md
s
vad=silero.VAD.load( min_speech_duration=0.03, # Catch very short utterances min_silence_duration=0.3, # Less waiting time activation_threshold=0.3, # CRITICAL for low volume sample_rate=16000, # 16kHz sample rate max_buffered_speech=60.0, # Buffer up to 60 seconds ), will these parameters work?
t
Thank you for sharing the parameters you’re using for Silero VAD (
min_speech_duration=0.03
,
min_silence_duration=0.3
,
activation_threshold=0.3
,
sample_rate=16000
,
max_buffered_speech=60.0
)! These settings are indeed valid and supported by the plugin. Adjusting the
activation_threshold
and
min_silence_duration
to lower values can help make the VAD more sensitive to children’s voices, which often have a higher pitch and shorter pauses. That said, the documentation doesn’t specifically confirm how well these parameters work for detecting children’s voices (ages 4-13). Because children’s speech can vary quite a bit, it might take some trial and error to find the perfect balance for your needs. If you’d like, I’d be happy to guide you through setting up a testing framework so you can evaluate and fine-tune these parameters using sample audio. Just let me know how I can assist! Sources: Silero VAD plugin | LiveKit Docs | tests/test_vad.py | Improving voice AI&#39;s turn detection with transformers