Skip to content

Improve asr heuristics#2445

Open
ShaohongZ wants to merge 7 commits intomainfrom
improve_asr_heuristics
Open

Improve asr heuristics#2445
ShaohongZ wants to merge 7 commits intomainfrom
improve_asr_heuristics

Conversation

@ShaohongZ
Copy link
Contributor

Overview

Included heuristics information to improve ASR detection results

Type of change

  • Bug fix
  • [v ] New feature
  • Documentation improvement
  • Bounty issue submission
  • Other:

Changes

  • Directed-at-robot filter: Added _seems_directed_at_robot() heuristic that checks for keywords (greetings, question words, robot names, conference terms) and question marks. Filters out overheard chatter not intended for the robot.
  • ASR text normalization: Added _normalize_asr_text() with _ASR_CORRECTIONS to fix common misrecognitions (e.g. "om one" → "OM1", "open mind" → "OpenMind", "unit tree" → "Unitree").
  • Minimum word count filter: Messages with 2 or fewer words are ignored to reduce noise from short non-speech sounds.
  • Applied to both riva_asr.py (microphone input) and riva_asr_rtsp.py (RTSP stream input). The RTSP variant imports shared filter functions from riva_asr.py to avoid duplication.

@ShaohongZ ShaohongZ requested review from a team as code owners March 6, 2026 22:50
@github-actions github-actions bot added robotics Robotics code changes python Python code labels Mar 6, 2026
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@ShaohongZ ShaohongZ requested a review from a team as a code owner March 9, 2026 17:35
@github-actions github-actions bot added the tests Test files label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant