Add laptop voice agent and console poker demo

main
No checks reported

Commit

Colin Wang22h ago

Voice handling now runs on the laptop hub instead of the UNO boards.

  • hub/voice.py: mic -> Silero VAD -> faster-whisper (small.en, CUDA with CPU fallback) -> intent. Foreground listening for a noisy room: starts only on speech louder than the room, ends on a level drop, ends early once the words are a complete action, and ignores Whisper hallucinations and quiet background chatter.
  • hub/intent.py: poker slang (three-bet, shove, knock, flat, limp, ship it, ...) and sizing (pot, half pot, 3x, big blinds, min raise, "twenty more", "see your 20 and raise 40"). Questions and chatter are never actions.
  • hub/game.py: no-limit Hold'em state with blinds, betting rounds, side pots and showdown.
  • hub/demo.py: console game played by voice, with --type for keyboard input.
  • hub/tts.py: Piper text-to-speech with a Windows SAPI fallback. Hole cards are never spoken.
  • tools/bench_stt.py, tools/bench_vad.py: speech-to-text and noisy-room listening benchmarks.