Skip to content

feat(voice): stop listening once the speaker goes quiet - #51

Open
Zfinix wants to merge 2 commits into
mainfrom
feat/voice-auto-stop
Open

Zfinix wants to merge 2 commits into
mainfrom
feat/voice-auto-stop

Conversation

@Zfinix

@Zfinix Zfinix commented Sep 30, 2026

Copy link
Copy Markdown
Owner

TL;DR

Dictation stops by itself when you stop talking, and the TUI shows a timer and level meter while it listens.

Changes

  • Recording ends after 0.3 s of speech followed by 1.5 s of quiet (crates/aster-voice/src/vad.rs)
  • aster dictate ends on that too, so the desktop, VS Code, and aster serve mic buttons get it
  • TUI footer while listening: ● 0:03 ▁▃▄▃▄▄ · ctrl+r to stop
  • PR template rewritten to this shape

Try it

Run aster, press ctrl+r, say a sentence, and stop talking. The text lands in the input box on its own.

Tested

  • make check passes (8 new tests for the silence detector)
  • Tried it for real: say spoke into the mic with stdin held open. It stopped 1.6 s after the sentence, and the transcript was exact. Same in the TUI driven headless, where the meter moved with speech.

🤖 Generated with Claude Code

The recorder learns the room's noise from the quietest early slice, then stops after at least 0.3 s of speech followed by 1.5 s of quiet. aster dictate ends on that too, so every mic button gets it. The TUI footer shows elapsed time and a live level meter while listening.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant