Commit 42e7415
feat(main): scope v1.8.13 segmenter default flip to safe paths
The v1.8.13 system-wide flip from silero-v3.1 to whisperseg as the
default speech segmenter was applied unconditionally in main.py at the
--speech-segmenter resolution layer. F4/F6/F7 acceptance testing
exposed two interacting problems on the simple Transcription Mode path:
1. Config-routing bug (firewall in faster_whisper_pro_asr.py:104-110
and whisper_pro_asr.py:74-81 strips backend-agnostic grouping
params chunk_threshold_s / max_group_duration_s for non-Silero
backends — see v1.9.0 tracker for the architectural fix).
2. The model regression (now fixed in commit ad22a6e — large-v2 default).
This commit addresses problem #1 surgically by scoping the v1.8.13
default-flip to paths that route segmenter grouping params correctly:
Safe paths (whisperseg default):
--ensemble (pass_worker.py:1404-1418 routes correctly)
--pipeline decoupled (DecoupledPipeline kwargs path)
--mode qwen (QwenPipeline explicit forwarding,
v1.8.12 fix)
All other paths (silero-v3.1 default):
--mode balanced (without --ensemble)
--mode fidelity (without --ensemble)
--mode fast / faster / transformers
Explicit override behavior:
--speech-segmenter silero-* in any mode → passes through
--speech-segmenter whisperseg/ten/nemo/whisper-vad
on a non-safe path → hard warning + downgrade
to silero-v3.1 with
pointer to --ensemble
Implementation: helper function _path_safe_for_whisperseg_default(args)
returns True iff the args resolve to a path with explicit segmenter
routing for non-Silero backends. Default resolution branches on this;
explicit override guard also references it.
Verified at runtime via --dump-params:
Simple --mode balanced (no override) → silero-v3.1 ✓
--ensemble (no override) → whisperseg ✓
--mode qwen (no override) → whisperseg ✓
Explicit --speech-segmenter whisperseg
on simple --mode balanced → WARNING + falls back to
silero-v3.1 ✓
Verified at end-to-end via F8 acceptance run:
Simple --mode balanced --sensitivity aggressive on the F4 reference
clip → 51 SRT entries (vs F4's 10 with whisperseg default).
This is the v1.8.13 ship-safe scope. The unified routing fix is
v1.9.0 (tracked in release notes).
File: whisperjav/main.py:1840-1898
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad22a6e commit 42e7415
1 file changed
Lines changed: 48 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1841 | 1863 | | |
1842 | 1864 | | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
1853 | 1890 | | |
1854 | 1891 | | |
1855 | 1892 | | |
| |||
0 commit comments