9 Commits
Author SHA1 Message Date
Chi-Wei Lee d77b31d8c2 fix: retain unpunctuated tail in sentence timestamps (#3754) 2026-10-08 14:07:12 +08:00
damnwenxi aa353d6d22 fix: honor submodel device placement across inference calls 2026-09-14 09:20:40 +08:00
LauraGPT 83de4060de fix(auto-model): align sentencepiece word markers
Signed-off-by: LauraGPT <[email protected]>
2026-08-30 21:21:23 +00:00
John6666 391fb2b513 fix(auto-model): preserve explicit timestamp and speaker text
Signed-off-by: John6666 <[email protected]>
2026-08-30 20:42:55 +09:00
zhifu gao 6829ba7845 fix(auto-model): align split punctuation tokens (#3469)
Preserve subtitle segmentation when punctuation token boundaries split a timestamped ASR word.

Signed-off-by: LauraGPT <[email protected]>
2026-08-04 14:27:55 +08:00
zhifu gao 0a9cc00642 fix(auto-model): preserve VAD segments on punctuation mismatch (#3434)
Fall back to VAD-aligned string sentence records when a sized punctuation array cannot align with long-audio ASR timestamps.

Verified against both reporter attachments: 103.mp3 recovers 199 sentence records and 2980.mp3 remains byte-for-byte unchanged.

Signed-off-by: LauraGPT <[email protected]>
2026-07-27 21:40:45 +08:00
zhifu gaoandzhifu gao 99b703009a Return VAD sentence timestamps for SenseVoice (#3414)
Co-authored-by: zhifu gao <[email protected]>
2026-07-24 20:20:32 +08:00
zhifu gao 878da6e513 fix: align SenseVoice sentence timestamps (#3407) 2026-07-24 12:23:37 +08:00
Lidang Jiang 8dc6ceabcf Fix #2839: initialize punc_res before conditional to prevent UnboundLocalError (#2840)
* Fix #2839: initialize punc_res before conditional to prevent UnboundLocalError

When punc_model is None or not provided, punc_res was only assigned inside
the `if self.punc_model is not None:` block. Downstream code paths
(punc_segment speaker diarization and sentence_timestamp) accessed punc_res
unconditionally, causing UnboundLocalError.

Changes:
- Initialize punc_res = None before the conditional block
- Add punc_res is None guard in punc_segment path with error log
- Add punc_res is None guard in sentence_timestamp path with warning log
- Add unit tests covering punc_model=None, empty punc_model, and normal flow

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

Signed-off-by: Lidang-Jiang <[email protected]>

* fix: update docstring to only mention punc_model=None case

The tests only cover the None case, not the empty string case. Update
the module docstring to match actual test coverage.

Signed-off-by: Lidang-Jiang <[email protected]>

---------

Signed-off-by: Lidang-Jiang <[email protected]>
2026-05-19 16:30:00 +08:00