Skip to content

v3.4.0 — Smart sentences, Auto engine, rate-limit hardening / 智能整句、自动引擎、限流加固

Choose a tag to compare

@Gythiro Gythiro released this 10 Jul 00:16

Auto-generated captions finally read like language instead of word salad.

What's new

  • Smart sentences engine. Auto-generated captions are time slices, not sentences — translating them one by one breaks word order and word sense. The new engine rebuilds full sentences from the fragments (using word-level timing to find real speech pauses) before translating, so the second line finally reads like language.
  • A new engine selector. A dropdown replaces the old two-way toggle:
    • Auto (recommended, default) — YouTube's whole-track translation whenever the video supports it; smart sentences when it doesn't.
    • Whole-track (YouTube) — pinned manually.
    • Smart sentences (Google) — pinned manually; worth a try when the whole-track wording reads badly.

Improved

  • Rate-limit hardening. All Google-endpoint requests now go through a paced queue (≥1.2 s spacing) with exponential backoff; the sentence being watched jumps the queue. While waiting, the translation line shows an honest "…" instead of a stale line next to new text. Partial translations from a transient endpoint glitch are detected and retried automatically.

Notes

  • Your existing engine choice is migrated automatically; mixed old/new devices on the same sync profile stay compatible.
  • Requires Chromium 102+ (now declared in the manifest).

自动生成的字幕,终于读起来像人话,而不是一堆碎词。

新功能

  • 智能整句引擎。自动字幕是按时间切的片段,不是句子,逐片翻译会打乱语序和词义。新引擎先用词级时间轴找到真正的说话停顿,把碎片拼回完整句子再翻译,第二行终于读得通。
  • 新的引擎下拉。取代原来的双向开关:
    • 自动(推荐,默认) —— 视频支持时用 YouTube 整轨翻译,不支持时换智能整句。
    • 整轨翻译(YouTube) —— 手动指定。
    • 智能整句(Google) —— 手动指定;整轨翻译措辞不通顺时值得一试。

改进

  • 限流加固。所有走 Google 接口的请求都进入一条限速队列(间隔 ≥1.2 秒)并带指数退避;正在观看的那一句会插队。等待期间译文行显示一个诚实的「…」,而不是把上一句旧译文摆在新原文旁边。接口偶发抖动导致的「翻了一半」会被识别并自动重试。

说明

  • 你原有的引擎选择会自动迁移;同一个同步账号下新旧版本设备混用也不会互相影响。
  • 需要 Chromium 102 以上(现已写进 manifest)。

Install / 安装:https://chromewebstore.google.com/detail/dual-subtitles-for-youtub/ndifcigakimmibkgeabchfaolhjpcmge
Full changelog / 完整更新日志:https://gythiro.github.io/yt-dual-subs/updated.html