Repository navigation
VAD
Status: Implemented
Last Updated: 2026-11-13
Audience: Developers and people using hands-free listening
Last verified: 2026-11-13 against 5f40af2d9
Code: src/Martlet.Audio/EnergyVoiceActivityDetector.cs, src/Martlet.Audio/TalkOver.cs, src/Martlet.Conversation/EndOfTurn.cs, src/Martlet.Sherpa/SmartTurnEngine.cs, src/Martlet.Desktop/EndOfTurnJudge.cs, src/Martlet.Desktop/LiveConversationController.TurnCapture.cs, src/Martlet.Desktop/TalkPreferences.cs
Martlet finds where speech starts and ends with an energy detector and an end-of-turn judge. Both ship in the desktop app.
Always listening in the desktop uses an
energy detector (EnergyVoiceActivityDetector in Martlet.Audio) and, on top of
it, an end-of-turn judge (EndOfTurnGate in Martlet.Conversation). With
Companion › Listening › Judge when I finish talking on (the default), the
detector itself waits for the longer pause for unfinished speech
(EndOfTurnGate.DetectorEndSilence, at least 1.6 s). After 260 ms of silence
the gate asks Smart Turn v3.2 when the judge is available
(SmartTurnEngine in Martlet.Sherpa, the bundled
turn-detection\smart-turn-v3.2-cpu.onnx). It ends the speech early with
EnergyVoiceActivityDetector.EndSpeech() when Smart Turn hears a finished turn.
At the plain pause (Reply after) the gate ends it unless the judge said the
turn is unfinished. Off, missing or failed, the detector runs with the plain
pause exactly as before. Smart Turn runs through the ONNX Runtime that ships
with sherpa-onnx (1.28.2). See
Voice latency and
Conversation.
At the same 260 ms check point, Companion › Listening › Start replies early
(on by default, with Parakeet on this PC) starts the reply on the quick
transcript, held, and keeps it only when the detector ends the turn in that
same pause; the first frame of the user's own voice in the pause (never what
the speakers play, EchoTimeline.Speakers, and never what Hear what this PC
plays hears) lets it go. Without a judge, the quick transcript still starts
at 260 ms for it (only when a reply may start early with the Thinking model in
use), and speech-to-text reuses it when the plain pause ends the turn there. See
Voice latency.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine