Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge remote-tracking branch 'upstream/main' into fix/trim-transcription

Aditya Garuda73cbe6e8cc9
diff --cc apps/desktop-gpui/src/transcription.rs
index 4fe8db857,5ea9ccdaa..109edf084
--- a/apps/desktop-gpui/src/transcription.rs
+++ b/apps/desktop-gpui/src/transcription.rs
@@@ -1607,9 -1766,16 +1639,18 @@@ pub fn transcribe_blocking
project_path: &Path,
model: &str,
language: &str,
+ timeline: Option<&TimelineConfiguration>,
+ recording_durations: &[f64],
) -> Result<Vec<CaptionSegment>, String> {
+ let requested = model;
+ // A download writes straight to the model's final path, so a model still
+ // downloading looks present but cannot load yet.
+ let model = transcription_model(model, language, |model| {
+ model_files_present(model) && !hub().downloading(model)
+ })?;
+ if model != requested {
+ tracing::info!("{requested} cannot transcribe {language}; using the {model} Whisper model");
+ }
let model_file = model_path(model);
if !project_path.exists() {
return Err(format!(