feat(scripts): 增强 conversation 转录与批量处理能力#28
Open
walkoncross wants to merge 6 commits into
Open
Conversation
silero-vad 默认 min_silence_duration_ms=100ms,导致句间停顿被过度切分
(实测误检率高达 53%,产出段数是 ref 的 1.5 倍)。
将默认值改为 500ms,与 fsmn-vad / ten-vad 的 silence_gap_s=0.5s 保持一致。
参数同时暴露在 apply_vad() 接口上,可按需调整。
-1 或值 >= 音频通道数时处理全部通道,0/1 仅处理对应单通道
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/transcribe_conversation.py增加 LoRA adapter 注入、批量转录与模型复用能力--channels选择单通道或全通道,并将 conversations 条目字段从role调整为speakermin_silence_duration_ms参数支持,并补充scripts/vad_utils.pyTest plan
scripts/transcribe_conversation.py验证单文件转录流程--channels 0、--channels 1与--channels -1的输出符合预期min_silence_duration_ms参数生效🤖 Generated with Claude Code