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

Ouverte
#3,473 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
Active
Stack technique
react, rust, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
25k
Forks
2.4k
Merge moyen
1 j 8 h
PR mergées (30 j)
676

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de CapSoftware/Cap

Toutes les issues de CapSoftware/Cap

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.