Skip to content

Clone your own voice on your own computer: speak any text in 60+ languages and dub videos into another language in your voice. Fully local. Early version.

fix(app): Redub's subtitles mode card fits the narrowest window (#162)

Taras Hevlichac1b3f886349
diff --git a/README.md b/README.md
index b8a5cf3..6bf6bbd 100644
--- a/README.md
+++ b/README.md
@@ -325,7 +325,7 @@ Where your data lives (voices, datasets, trained models, generated audio) is des
| --- | --- |
| ![Making a new voice from gender, age, pitch and accent](docs/screenshots/design.png) | ![Takes of new voices, one being kept as a voice](docs/screenshots/design-takes.png) |
-| Video with subtitles | Export as video |
+| Add subtitles | Export as video |
| --- | --- |
| ![Subtitles over your photos, each starting at its own time](docs/screenshots/redub-subtitles.png) | ![Export as: a video with subtitles over photos](docs/screenshots/usage-export-video.png) |
diff --git a/contract/engine-protocol.md b/contract/engine-protocol.md
index 9b39d72..d2c3298 100644
--- a/contract/engine-protocol.md
+++ b/contract/engine-protocol.md
@@ -1272,7 +1272,7 @@ anything needing ffmpeg answers `not_ready`.
with `/dev/dri/renderD128`, CQP 23, frames uploaded with `hwupload`) that this ffmpeg has and that encodes a
1-second 256x144 test (ffmpeg lists encoders the machine has no device for). Probed once per engine process and
logged; none works: libx264. Quality 23 matched libx264 CRF 20 (SSIM 0.963 on noisy 1080p with NVENC). Redub's
- burned subtitles and its Video with subtitles mode use the same encoder. A video source that is re-encoded is decoded with
+ burned subtitles and its Add subtitles mode use the same encoder. A video source that is re-encoded is decoded with
`-hwaccel auto` (the frames come back to memory, so the filters work; without a usable device ffmpeg decodes in
software).
- **Video `path`** (`images` are ignored): the same container as `dest` and no subtitles: a plain file copy
@@ -1699,7 +1699,7 @@ importable format, also video) and convert it themselves: the app never has to.
"voice_match":1.0,"expressiveness":0.8,"quality":"best","speed":1.0,"timing"?:"keep","output_format"?:"wav",
"output"?:"audio","keep_background"?:false,"subtitles"?:false,"subtitle_position"?:"bottom","result_mode"?:"dub",
"model"?:"auto"}` -> `{"job"}`
-- `subtitles` (Video with subtitles): `{"path","mode":"subtitles","segments":[{"start","end","text"}],"language"?,
+- `subtitles` (Add subtitles): `{"path","mode":"subtitles","segments":[{"start","end","text"}],"language"?,
"subtitle_position"?:"bottom","images"?:[{"path","start"?}],"transitions"?:false,"picture"?:"own",
"output_format"?:"wav"}` -> `{"job"}`. Nothing is spoken and no model is used, only
ffmpeg: `voice_id` and the other voice, `output`, `keep_background` and `subtitles` parameters are ignored. `segments`
diff --git a/crates/desktop/src/ui/redub.rs b/crates/desktop/src/ui/redub.rs
index 9ab4670..8a10f05 100644
--- a/crates/desktop/src/ui/redub.rs
+++ b/crates/desktop/src/ui/redub.rs
@@ -72,7 +72,7 @@ struct Seg {
edit: TextEdit,
/// Whisper's word times, for subtitles that follow the speech; none for a translation.
words: Vec<(f32, f32, String)>,
- /// Start and end as typed, in Video with subtitles.
+ /// Start and end as typed, in Add subtitles.
times: [TextEdit; 2],
/// The times and word times as transcribed, kept once the times are typed over.
heard: Option<Box<Transcribed>>,
@@ -161,7 +161,7 @@ impl Run {
}
}
-/// The language Redub's speech is in, for the Model choice (none in Convert voice and Video with subtitles).
+/// The language Redub's speech is in, for the Model choice (none in Convert voice and Add subtitles).
pub fn speech_language(s: &AppState) -> Option<String> {
match s.redub.mode {
RedubMode::Dub => {
@@ -2056,7 +2056,7 @@ fn mode_block(s: &AppState, p: Palette) -> El {
.child(mode_card(
p,
"mode-subtitles",
- "Video with subtitles",
+ "Add subtitles",
"Same sound, words and pictures on screen",
m == RedubMode::Subtitles,
RedubMode::Subtitles,
diff --git a/crates/mcp/src/server.rs b/crates/mcp/src/server.rs
index 59be5c8..aa47764 100644
--- a/crates/mcp/src/server.rs
+++ b/crates/mcp/src/server.rs
@@ -2159,7 +2159,7 @@ impl Mimvox {
Ok(self.export_inner(args, progress.as_mut(), &cancel).await.unwrap_or_else(|e| fail(&e)))
}
- #[tool(description = "Burn subtitles into a video with its own sound (Redub's Video with subtitles): \
+ #[tool(description = "Burn subtitles into a video with its own sound (Redub's Add subtitles): \
transcribes it (redub.transcribe) unless segments are given, then redub.render mode \
subtitles; images put pictures over the sound (fading with transitions). Returns the video's path, a \
mimvox://file/ link and the lines used; the video and its sound are saved as a Redub \
diff --git a/docs/usage.md b/docs/usage.md
index b980e0c..e545be9 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -404,7 +404,7 @@ The tools:
| `design_voice`, `list_design_takes`, `keep_design_take`, `delete_design_take` | a new voice from a description, as the Design tab makes it |
| `import_text`, `start_book`, `book_status`, `pause_book`, `resume_book` | a document read as an audiobook |
| `transcribe` | the speech of a file as timed lines, optionally translated |
-| `respeak`, `convert_voice`, `dub_video`, `subtitle_video` | Redub's Re-speak, Convert voice, Translate & dub (the video as the result) and Video with subtitles (photos over the sound, optionally fading), each in one call |
+| `respeak`, `convert_voice`, `dub_video`, `subtitle_video` | Redub's Re-speak, Convert voice, Translate & dub (the video as the result) and Add subtitles (photos over the sound, optionally fading), each in one call |
| `export_video` | a video of a result, or of book chapters joined into one episode with a picture and subtitles per chapter; it answers where each chapter starts, for chapter marks |
| `list_results`, `export_audio`, `delete_result` | your saved results: list them, save one in another format, delete one |
| `job_status`, `wait_job` | long jobs (books, training), with progress |
@@ -1041,10 +1041,10 @@ There are four modes.
| **Translate & dub** (default) | Transcribes the speech, translates it to the language you choose and speaks it in your voice, each sentence at its original time. | Any voice, trained or not. |
| **Convert voice** | Keeps the original recording, its timing and delivery, and swaps in your trained voice. | A trained voice. |
| **Re-speak** | Transcribes the speech, lets you edit (or translate) the words, then speaks them again in your voice. | Any voice. |
-| **Video with subtitles** | Transcribes the speech, lets you fix the words, then makes a video with the original sound and your text drawn in as subtitles, over your photos for an audio file. Nothing is spoken again. | No voice. |
+| **Add subtitles** | Transcribes the speech, lets you fix the words, then makes a video with the original sound and your text drawn in as subtitles, over your photos for an audio file. Nothing is spoken again. | No voice. |
The Style panel on the right (Speed, Expressiveness, Voice match, Quality) is the same as on Speak. Speed and
-Expressiveness do not apply to Convert voice, which keeps the original pace. Video with subtitles hides the panel:
+Expressiveness do not apply to Convert voice, which keeps the original pace. Add subtitles hides the panel:
none of it applies there.
The options of a mode appear once a file is chosen. Choices that are set once and rarely touched are one line each,
@@ -1192,11 +1192,11 @@ When the text is English (spoken or translated) and the voice has no English cli
**Accent** choice as Speak (see [Native accent](#native-accent-english-with-an-american-accent)), and the render uses
it.
-### Video with subtitles
+### Add subtitles
-![Video with subtitles over photos at their own times](screenshots/redub-subtitles.png)
+![Add subtitles over photos at their own times](screenshots/redub-subtitles.png)
-1. Choose an audio or video file and select **Video with subtitles**. No voice is needed, and the Style panel is hidden.
+1. Choose an audio or video file and select **Add subtitles**. No voice is needed, and the Style panel is hidden.
2. Set **Spoken language** (or Auto-detect) and press **Transcribe**.
3. Fix the words and delete lines you do not want, as in Re-speak. Each line's start and end are fields too (seconds or
m:ss, to a tenth: `0:29.4`): type new ones to move the subtitle; its words are spread over the new time. Times