Repository navigation
fix(asr/streaming): join a window that opens mid-word onto the previous text - #1097
Conversation
…us text (#912) With vocabulary boosting, finish() builds the transcript from window text joined with spaces, while the token stream glues a window's first piece onto the previous token when that piece starts inside a word. A seam that cut before punctuation or mid-word therefore read "detail . As a result", or left a stray "y" from "Andre|y". The opening fragment now attaches like the token stream: punctuation always, a continuation's letters unless rescoring replaced the previous word (its term already spells the word), and a fragment rescoring rewrote keeps its own word.
Sortformer High-Latency Benchmark ResultsES2004a Performance (30.4s latency config)
Sortformer High-Latency • ES2004a • Runtime: 4m 41s • 2026-11-01T20:49:46.182Z |
PocketTTS Smoke Test ✅
Runtime: 0m18s Note: PocketTTS uses CoreML MLState (macOS 15) KV cache + Mimi streaming state. CI VM lacks physical GPU — audio quality and performance may differ from Apple Silicon. |
Parakeet EOU Benchmark Results ✅Status: Benchmark passed Performance Metrics
Streaming Metrics
Test runtime: 1m42s • 11/01/2026, 04:15 PM EST RTFx = Real-Time Factor (higher is better) • Processing includes: Model inference, audio preprocessing, state management, and file I/O |
ASR Benchmark Results ✅Status: All benchmarks passed Parakeet v3 (multilingual)
Parakeet v2 (English-optimized)
Streaming (v3)
Streaming (v2)
Streaming tests use 5 files with 0.5s chunks to simulate real-time audio streaming 25 files per dataset • Test runtime: 9m9s • 11/01/2026, 04:18 PM EST RTFx = Real-Time Factor (higher is better) • Calculated as: Total audio duration ÷ Total processing time Expected RTFx Performance on Physical M1 Hardware:• M1 Mac: ~28x (clean), ~25x (other) Testing methodology follows HuggingFace Open ASR Leaderboard |
Supertonic3 Smoke Test ✅
Runtime: 0m28s Note: CI VMs lack a physical Neural Engine; the ANE-bucketed VectorEstimator falls back to CPU here. This validates download + variant resolution + synthesis, not ANE residency/perf. |
Offline VBx Pipeline ResultsSpeaker Diarization Performance (VBx Batch Mode)Optimal clustering with Hungarian algorithm for maximum accuracy
Offline VBx Pipeline Timing BreakdownTime spent in each stage of batch diarization
Speaker Diarization Research ComparisonOffline VBx achieves competitive accuracy with batch processing
Pipeline Details:
🎯 Offline VBx Test • AMI Corpus ES2004a • 1049.0s meeting audio • 189.2s processing • Test runtime: 3m 8s • 11/01/2026, 04:46 PM EST |
Speaker Diarization Benchmark ResultsSpeaker Diarization PerformanceEvaluating "who spoke when" detection accuracy
Diarization Pipeline Timing BreakdownTime spent in each stage of speaker diarization
Speaker Diarization Research ComparisonResearch baselines typically achieve 18-30% DER on standard datasets
Note: RTFx shown above is from GitHub Actions runner. On Apple Silicon with ANE:
🎯 Speaker Diarization Test • AMI Corpus ES2004a • 1049.0s meeting audio • 42.7s diarization time • Test runtime: 4m 3s • 11/01/2026, 05:02 PM EST |
Closes #912.
Why is this change needed?
Streamed through
SlidingWindowAsrManagerwith the issue's config (11 s / 2 s / 2 s windows, CTC vocabulary boosting), all 772 real Earnings-22 keyword clips (14.5–15 s, one seam each) were tested onmain. Two results:minContextForConfirmation/confirmationThresholdat 0 vs the 10 s / 0.85 defaults give byte-identicalfinish()text on all 772 clips, although the defaults leave windows unconfirmed in 222 of them. Since Vocabulary boosting / CTC keyword spotting on the unified Parakeet path? #851 (fix(asr/vocab): tokenize in-code terms, rescore every streaming window, stop volatile-text loss (#851) #898) an unconfirmed window appends instead of overwriting. On v0.15.6 the two configs differed on 160 of 250 clips, and the defaults' WER was 69% against 31%.finish()joins window text with spaces, while the token stream glues a window's first piece onto the previous token when it starts inside a word. 58 of 772 boosted transcripts had the artifact, and the plain stream had none:What changes?
When a window's first token isn't a word start, its opening fragment attaches to the previous text the way the token stream attaches it:
Results (all 772 clips, boosted, issue config)
mainThe boosted WER is high on this keyword-dense set because of the rescoring itself (#967), not the seam.
Unchanged: plain (non-boosted)
finish()text is byte-identical on 200 of 200 clips, and so is zeroed vs default thresholds with boosting.Tests
joiningMidWordStarttests, built from the real seams above.swift format lintis clean.🤖 Generated with Claude Code