edge-tts 的 WordBoundary 在中文上粒度很粗,拿它切字幕会得到一行 40 多字

Domain: video · Evidence E1 — Maintainer reviewed
edge-ttsttssubtitlechinesewordboundarysrt

Summary

用 edge-tts 的 WordBoundary 事件生成字幕:遍历 stream(),收集 type=="WordBoundary" 的 offset/duration,再按累计字数每 12 字切一组,生成 SRT。

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons