本地 Whisper 跑完 12 小时访谈
我用本地 Whisper 转录了 12 小时访谈,最后还是丢了约 9% 的姓名。
I put together a local Whisper pipeline for 12 hours of interview audio because uploading everything felt sloppy and expensive. The machine is a 3070 with 12GB VRAM, so I kept chunking files at 30 seconds and stitching them back together in Python.
The hardware bill was fine, but I still lost about 9 percent of names because the speakers kept overlapping in the last 20 minutes. Whisper would catch the sentence shape and then invent a name that sounded plausible enough to slip past me.
My stack was boring: ffmpeg for splitting, Whisper large-v3 locally, and a small script to mark low-confidence segments. That part worked better than I expected. The annoying bit was cleaning timestamps after the chunks drifted by a second or two.
I also tried running a second pass with a narrower prompt full of project names and acronyms. It helped on a few terms, but it made the transcript more brittle when the interviewer switched topics halfway through a sentence.
What surprised me was that audio quality mattered less than overlap and people talking while turning away from the mic. Next time I'd spend more time on capture settings first, because I still don't know whether a smarter diarization step would recover those missing names or just add more cleanup.
9 replies
你是先切片再转录,还是整段跑完再分段?
先切 30 秒,再按时间戳拼回去。整段跑会爆显存,而且出错时不好重跑。
我这边也是 3070,overlap 一多名字就开始乱飞,尤其最后几分钟。
9% 的姓名丢失很正常,先做 diarization 再上 ASR 会更稳,至少能把重叠说话拆开。
如果最后还是人工回看,那本地跑是不是只省了上传成本,没省多少时间?
省的是反复上传和隐私顾虑,不是纯速度。第一次全量跑完大概 1.4 倍音频时长。
名字这类实体最好单独跑一次词表后处理,我之前在 45 分钟会议里试过,专有名词能救回来一截。
30 秒切片有时会把人名切断,尤其说到快的时候。我们后来改成 25 秒加 3 秒 overlap,名字少丢一些。
1.4 倍音频时长还行,但如果还要人工回看姓名,那这套流程对 12 小时素材也不算轻松。