Skip to content

Multi-language caption translation #49

Description

@JeremySNR

On the roadmap, not built yet.

Transcription already works in other languages: Whisper auto-detects, or you pick a language in Settings (it defaults to English because auto-detect occasionally mislabels English as a similar-sounding language). Captions then burn in whatever Whisper returned.

What's missing is translation: taking an English video and burning in Spanish captions, or vice versa.

What's involved

  • Translate the transcript while keeping word-level timings usable. This is the real problem: word counts and word order change between languages, so per-word karaoke timing cannot be carried across directly. Translating per caption group and redistributing timing across the group proportionally is probably the pragmatic answer.
  • A target-language picker, per clip rather than per project, since one source video may want several language versions.
  • Font coverage. The bundled caption fonts do not all cover non-Latin scripts, so CJK, Arabic or Cyrillic output needs a fallback. Note that Arabic and Hebrew also need right-to-left handling in libass.

Start at src/shared/captionLayout.ts for grouping and src/main/pipeline/captions.ts for ASS generation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions