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

release-app off real time audio by default

Louis Beaumont97255c25061d
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 087106cd0..8c1b5725b 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -195,7 +195,7 @@ const DEFAULT_SETTINGS: Settings = {
startAudioShortcut: "",
stopAudioShortcut: "",
pipeShortcuts: {},
- enableRealtimeAudioTranscription: true,
+ enableRealtimeAudioTranscription: false,
realtimeAudioTranscriptionEngine: "deepgram",
disableVision: false,
useAllMonitors: false,
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index ba1830bc2..ef2f74be2 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5300,7 +5300,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.41.12"
+version = "0.41.13"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 1adce6f51..21cde981f 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.41.12"
+version = "0.41.13"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-server/src/cli.rs b/screenpipe-server/src/cli.rs
index 85fa288d7..68161ad1d 100644
--- a/screenpipe-server/src/cli.rs
+++ b/screenpipe-server/src/cli.rs
@@ -188,7 +188,7 @@ pub struct Cli {
pub audio_transcription_engine: CliAudioTranscriptionEngine,
/// Enable realtime audio transcription
- #[arg(long, default_value_t = true)]
+ #[arg(long, default_value_t = false)]
pub enable_realtime_audio_transcription: bool,
/// Enable realtime vision
diff --git a/screenpipe-server/src/server.rs b/screenpipe-server/src/server.rs
index 6aa9f4d17..8aa2ff369 100644
--- a/screenpipe-server/src/server.rs
+++ b/screenpipe-server/src/server.rs
@@ -13,6 +13,7 @@ use oasgen::{oasgen, OaSchema, Server};
use screenpipe_core::Desktop;
+use chrono::TimeZone;
use screenpipe_db::{
ContentType, DatabaseManager, FrameData, Order, SearchMatch, SearchResult, Speaker,
TagContentType,
@@ -599,11 +600,16 @@ pub async fn health_check(State(state): State<Arc<AppState>>) -> JsonResponse<He
let audio_devices = state.audio_manager.current_devices();
let mut device_statuses = Vec::new();
let mut global_audio_active = false;
+ let mut most_recent_audio_timestamp = 0; // Track the most recent timestamp
// Check each device
for device in &audio_devices {
let device_name = device.to_string();
let last_capture = screenpipe_audio::core::get_device_capture_time(&device_name);
+
+ // Update the most recent timestamp
+ most_recent_audio_timestamp = most_recent_audio_timestamp.max(last_capture);
+
let device_active = if app_uptime < grace_period {
true // Consider active during grace period
} else {
@@ -743,7 +749,14 @@ pub async fn health_check(State(state): State<Arc<AppState>>) -> JsonResponse<He
status: overall_status.to_string(),
status_code,
last_frame_timestamp: last_frame,
- last_audio_timestamp: audio,
+ last_audio_timestamp: if most_recent_audio_timestamp > 0 {
+ Some(
+ Utc.timestamp_opt(most_recent_audio_timestamp as i64, 0)
+ .unwrap(),
+ )
+ } else {
+ None
+ },
last_ui_timestamp: last_ui,
frame_status: frame_status.to_string(),
audio_status,