Captions: optional English translation line under the original (bilingual captions)

Aperta
#3,473 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
react, rust, typescript

Direzione di ricerca

Read the existing caption transcription flow and the editor and export paths to determine where a second translated line could be supported; the issue does not name specific files or tests. First check how Whisper transcription is invoked and how caption segments are matched by time. Done means agreeing on the open product questions, then implementing and verifying bilingual captions in the editor and exports.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

laoer536 asked for this on #2855: captions with the spoken language on the first line and an English translation on the second, e.g.

你好,我的名字是刘杰
Hello, my name is Liu Jie

It's useful for demos and tutorials aimed at international viewers.

Whisper can already do the translation part: it has a built-in "translate" mode that turns speech in any language it supports into English text, and Cap already ships Whisper Small and Medium. So a first version could be:

  1. Transcribe as today (original language).
  2. Run Whisper again in translate mode on the same audio.
  3. Match each English segment to the original caption by time and show it as a second line.

Questions before I build it:

  • Is a second caption line something you'd want in the editor and exports, or should the translation replace the original instead?
  • English-only translation (what Whisper supports) OK for a first version?
  • Any preference on where the toggle lives (Captions tab, next to the language picker)?

Happy to open a PR if this sounds good.

Lingua principale
Rust
Stelle
25k
Fork
2.4k
Merge medio
1g 8h
PR unite (30g)
676

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CapSoftware/Cap

Tutte le issue di CapSoftware/Cap

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.