Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Bump app to v2.0.390

Louis Beaumonte7abbbc2d16c
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index c4f6e3323..01a304e97 100755
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8719,7 +8719,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.388"
+version = "2.0.390"
dependencies = [
"anyhow",
"async-stream",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 9e91d9cdc..169a3b8ba 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.389"
+version = "2.0.390"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rs
index 775a64020..a7318ff42 100644
--- a/crates/screenpipe-db/src/db.rs
+++ b/crates/screenpipe-db/src/db.rs
@@ -2314,6 +2314,8 @@ impl DatabaseManager {
audio_chunk_id: row.get("audio_chunk_id"),
speaker_id: row.try_get("speaker_id").ok(),
speaker_name: row.try_get("speaker_name").ok(),
+ start_time: row.try_get("start_time").ok(),
+ end_time: row.try_get("end_time").ok(),
});
}
}
diff --git a/crates/screenpipe-db/src/types.rs b/crates/screenpipe-db/src/types.rs
index ac7d36843..a3724b7b4 100644
--- a/crates/screenpipe-db/src/types.rs
+++ b/crates/screenpipe-db/src/types.rs
@@ -241,6 +241,10 @@ pub struct AudioEntry {
pub audio_chunk_id: i64,
pub speaker_id: Option<i64>,
pub speaker_name: Option<String>,
+ /// Offset in seconds from the start of the audio chunk file where this transcription begins
+ pub start_time: Option<f64>,
+ /// Offset in seconds from the start of the audio chunk file where this transcription ends
+ pub end_time: Option<f64>,
}
#[derive(OaSchema, Debug, Clone)]
diff --git a/crates/screenpipe-server/src/server.rs b/crates/screenpipe-server/src/server.rs
index 08648685f..1bad07a41 100644
--- a/crates/screenpipe-server/src/server.rs
+++ b/crates/screenpipe-server/src/server.rs
@@ -1623,7 +1623,7 @@ impl From<TimeSeriesFrame> for StreamTimeSeriesResponse {
transcription: audio.transcription,
audio_file_path: audio.audio_file_path,
duration_secs: audio.duration_secs,
- start_offset: 0.0, // calculate based on audio timestamp vs frame timestamp
+ start_offset: audio.start_time.unwrap_or(0.0),
audio_chunk_id: audio.audio_chunk_id,
speaker_id: audio.speaker_id,
speaker_name: audio.speaker_name,
diff --git a/crates/screenpipe-server/src/video_cache.rs b/crates/screenpipe-server/src/video_cache.rs
index 30a642079..cb171e246 100644
--- a/crates/screenpipe-server/src/video_cache.rs
+++ b/crates/screenpipe-server/src/video_cache.rs
@@ -46,6 +46,8 @@ pub struct AudioEntry {
pub audio_chunk_id: i64,
pub speaker_id: Option<i64>,
pub speaker_name: Option<String>,
+ pub start_time: Option<f64>,
+ pub end_time: Option<f64>,
}
impl From<screenpipe_db::AudioEntry> for AudioEntry {
@@ -59,6 +61,8 @@ impl From<screenpipe_db::AudioEntry> for AudioEntry {
audio_chunk_id: db_entry.audio_chunk_id,
speaker_id: db_entry.speaker_id,
speaker_name: db_entry.speaker_name,
+ start_time: db_entry.start_time,
+ end_time: db_entry.end_time,
}
}
}
@@ -535,6 +539,8 @@ impl FrameCache {
audio_chunk_id: a.audio_chunk_id,
speaker_id: a.speaker_id,
speaker_name: a.speaker_name.clone(),
+ start_time: a.start_time,
+ end_time: a.end_time,
})
.collect(),
});
@@ -836,6 +842,8 @@ async fn extract_frame(
audio_chunk_id: a.audio_chunk_id,
speaker_id: a.speaker_id,
speaker_name: a.speaker_name.clone(),
+ start_time: a.start_time,
+ end_time: a.end_time,
})
.collect(),
}],