Document that --max_speech_ms discards a longer segment #949
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 331 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #949"
general
weight: 0.35
andimarafioti
Summary
--max_speech_msis documented as:The VAD doesn't split anything. In
VADHandler(src/speech_to_speech/VAD/vad_handler.py), a segment longer thanmax_speech_mssetsduration_exceeds_limit. It can't be held for merging (that branch needsduration_ms <= self.max_speech_ms), so the whole segment is dropped:There's no splitting code anywhere, and the discard is clearly intended:
tests/test_speculative_turns.py::test_vad_max_speech_is_enforced_before_smart_turnsetsmax_speech_ms = 1500, drives a longer segment, and asserts nothing is emitted.So the help text promises the opposite of what happens. Someone who sets
--max_speech_ms 30000to split long monologues into turns loses every utterance longer than 30 s. It isn't transcribed or answered, and the only sign is an INFO log line.Change
Help text only, in
src/speech_to_speech/arguments_classes/vad_arguments.py:The field's help as argparse shows it, before and after (read from
dataclasses.fields(VADHandlerArguments)onmain6644d4fand on this branch):I didn't implement splitting. That's a behaviour change with design choices (where to cut, and whether to commit the first part as a turn), and the existing test pins the discard.
docs/configuration.mdonly saysmax_speech_ms: nullmeans unbounded, which stays true.Tests
This is a documentation fix, so there's no new test.
test_vad_max_speech_is_enforced_before_smart_turn, the test that pins the behaviour the new text describes, passes unchanged.Local gate (darwin/arm64, Python 3.12.16,
uv sync --group dev, the steps inci.yml):ruff check src/ tests/,ruff format --check src/ tests/andmypy src/are clean.pytest tests/ -q: 4190 passed, 11 skipped, 0 failed, the same asmainat6644d4f.🤖 Generated with Claude Code