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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Bump app to v2.0.585
Louis Beaumontd5528c9a2659
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex ccad47203..791da9e48 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -840,6 +840,24 @@ jobs:echo "args=$ARGS" >> $GITHUB_OUTPUTecho "Final tauri args: $ARGS"+ - name: Re-unlock build keychain before signing (macOS)+ if: matrix.os_type == 'macos'+ shell: bash+ run: |+ # Re-unlock the build keychain right before tauri build to ensure it+ # hasn't auto-locked during cargo compilation (can take 5+ minutes).+ BUILD_KC="$HOME/Library/Keychains/build.keychain-db"+ if [ -f "$BUILD_KC" ]; then+ security unlock-keychain -p "build_password" "$BUILD_KC"+ # Re-assert the keychain search list (other steps may have modified it)+ security list-keychains -d user -s "$BUILD_KC" \+ "$HOME/Library/Keychains/login.keychain-db" \+ "/Library/Keychains/System.keychain" \+ "/System/Library/Keychains/SystemRootCertificates.keychain"+ echo "Build keychain unlocked and search list verified"+ security find-identity -v -p codesigning "$BUILD_KC" 2>&1 | tail -3+ fi+- name: Builduses: tauri-apps/[email protected]env:@@ -848,9 +866,9 @@ jobs:TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}# for releaseGITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # for macos signing — cert is pre-imported into login keychain above,+ # for macos signing — cert is pre-imported into build keychain above,# so we do NOT pass APPLE_CERTIFICATE (which would create a temp keychain- # that fails with errSecInternalComponent on some self-hosted runners)+ # that conflicts with our build keychain setup)APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}APPLE_ID: ${{ secrets.APPLE_ID }}APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}diff --git a/Cargo.lock b/Cargo.lockindex fbf5fb938..94c80beea 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -193,7 +193,7 @@ version = "1.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"dependencies = [- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -204,7 +204,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"dependencies = ["anstyle","once_cell_polyfill",- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -488,6 +488,22 @@ dependencies = ["zbus",]+[[package]]+name = "audiopipe"+version = "0.1.0"+source = "git+https://github.com/screenpipe/audiopipe.git#3fe90489bce20dc98d8a45cf9f4e826fd07b76e1"+dependencies = [+ "half",+ "hf-hub",+ "ndarray",+ "ort",+ "realfft",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+ "tracing",+]+[[package]]name = "autocfg"version = "1.5.0"@@ -1125,7 +1141,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"dependencies = ["lazy_static",- "windows-sys 0.48.0",+ "windows-sys 0.59.0",][[package]]@@ -1791,7 +1807,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.59.0",+ "windows-sys 0.61.2",][[package]]@@ -2611,7 +2627,7 @@ dependencies = ["hyper","libc","pin-project-lite",- "socket2 0.6.2",+ "socket2 0.5.10","tokio","tower-service","tracing",@@ -2912,7 +2928,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"dependencies = ["hermit-abi","libc",- "windows-sys 0.59.0",+ "windows-sys 0.61.2",][[package]]@@ -3623,7 +3639,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.60.2",+ "windows-sys 0.61.2",][[package]]@@ -4785,7 +4801,7 @@ dependencies = ["quinn-udp","rustc-hash 2.1.1","rustls",- "socket2 0.6.2",+ "socket2 0.5.10","thiserror 2.0.18","tokio","tracing",@@ -4822,7 +4838,7 @@ dependencies = ["cfg_aliases","libc","once_cell",- "socket2 0.6.2",+ "socket2 0.5.10","tracing","windows-sys 0.60.2",]@@ -5241,7 +5257,7 @@ dependencies = ["errno","libc","linux-raw-sys 0.12.1",- "windows-sys 0.59.0",+ "windows-sys 0.61.2",][[package]]@@ -5429,6 +5445,7 @@ name = "screenpipe-audio"version = "0.3.158"dependencies = ["anyhow",+ "audiopipe","bytemuck","bytes","chrono",@@ -5590,6 +5607,7 @@ version = "0.3.158"dependencies = ["anyhow","async-trait",+ "audiopipe","axum","base64 0.22.1","bincode",@@ -6733,7 +6751,7 @@ dependencies = ["getrandom 0.4.1","once_cell","rustix 1.1.4",- "windows-sys 0.59.0",+ "windows-sys 0.61.2",][[package]]@@ -7924,7 +7942,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.48.0",+ "windows-sys 0.61.2",][[package]]diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsxindex 7f9fc757d..2984761b7 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx@@ -1357,7 +1357,7 @@ export const TimelineSlider = ({frameDate >= selectionRange.start &&frameDate <= selectionRange.end;- const hasAudio = Boolean(frame?.devices?.[0]?.audio?.length);+ const hasAudio = frame?.devices?.some((d) => d.audio?.some((a) => a.transcription?.trim()));const isCurrent = frameIndex === currentIndex;const matchesDevice = selectedDeviceId === "all" || frame.devices.some((d) => d.device_id === selectedDeviceId);const matchesApp = selectedAppName === "all" || frame.devices.some((d) => d.metadata?.app_name === selectedAppName);diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex eb9960927..6dac518df 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -999,6 +999,7 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre<SelectItem value="whisper-large-quantized">Whisper Large V3 Quantized{hwCapability?.recommendedEngine === "whisper-large-quantized" && " (recommended)"}</SelectItem><SelectItem value="whisper-large-v3-turbo">Whisper Large V3 Turbo{hwCapability?.recommendedEngine === "whisper-large-v3-turbo" && " (recommended)"}</SelectItem><SelectItem value="whisper-large-v3-turbo-quantized">Whisper Large V3 Turbo Quantized{hwCapability?.recommendedEngine === "whisper-large-v3-turbo-quantized" && " (recommended)"}</SelectItem>+ <SelectItem value="qwen3-asr">Qwen3-ASR (0.6B, ONNX)</SelectItem><SelectItem value="deepgram">Deepgram</SelectItem><SelectItem value="disabled">Disabled (capture only)</SelectItem></SelectContent>diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex fb9e8e7a6..b41ff186a 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -798,6 +798,22 @@ dependencies = ["zbus",]+[[package]]+name = "audiopipe"+version = "0.1.0"+source = "git+https://github.com/screenpipe/audiopipe.git#3fe90489bce20dc98d8a45cf9f4e826fd07b76e1"+dependencies = [+ "half",+ "hf-hub",+ "ndarray",+ "ort",+ "realfft",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+ "tracing",+]+[[package]]name = "auto-launch"version = "0.5.0"@@ -8167,7 +8183,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.583"+version = "2.0.585"dependencies = ["anyhow","arboard",@@ -8266,6 +8282,7 @@ name = "screenpipe-audio"version = "0.3.158"dependencies = ["anyhow",+ "audiopipe","bytemuck","bytes","chrono",@@ -8420,6 +8437,7 @@ version = "0.3.158"dependencies = ["anyhow","async-trait",+ "audiopipe","axum 0.7.9","base64 0.22.1","bincode",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 04623f021..5b4a89224 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.584"+version = "2.0.585"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""@@ -191,6 +191,9 @@ enterprise-build = []# On-device AI via Apple Foundation Models (macOS 26+ / Xcode 26+ only)apple-intelligence = ["screenpipe-server/apple-intelligence"]+# Qwen3-ASR speech-to-text engine (ONNX, 0.6B)+qwen3-asr = ["screenpipe-server/qwen3-asr"]+[package.metadata.cargo-machete]ignored = ["tauri-utils", "screenpipe-accessibility"]diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.tomlindex c6f418824..190b00f40 100644--- a/crates/screenpipe-audio/Cargo.toml+++ b/crates/screenpipe-audio/Cargo.toml@@ -81,6 +81,7 @@ ort-sys = "=2.0.0-rc.6"knf-rs = { git = "https://github.com/Neptune650/knf-rs.git" }futures = "0.3.31"deepgram = "0.6.4"+audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", default-features = false, features = ["qwen3-asr"], optional = true }bytes = { version = "1.9.0", features = ["serde"] }rand = "0.9.0"@@ -117,6 +118,9 @@ metal = ["whisper-rs/metal"]cuda = ["whisper-rs/cuda"]vulkan = ["whisper-rs/vulkan"]pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]+qwen3-asr = ["dep:audiopipe"]+coreml = ["audiopipe/coreml"]+directml = ["audiopipe/directml"][[example]]name = "screenpipe-audio"diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rsindex b3de3798e..2c38d07a9 100644--- a/crates/screenpipe-audio/src/audio_manager/manager.rs+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs@@ -453,6 +453,42 @@ impl AudioManager {.map_err(|e| anyhow!("failed to create initial whisper state: {}", e))?;info!("whisper state created (will be reused across segments)");+ // Initialize alternate STT engine (Qwen3-ASR) if selected+ let alternate_stt: Option<crate::transcription::stt::AlternateSttEngine> = {+ #[cfg(feature = "qwen3-asr")]+ {+ if *audio_transcription_engine == AudioTranscriptionEngine::Qwen3Asr {+ match tokio::task::spawn_blocking(|| {+ audiopipe::Model::from_pretrained("qwen3-asr-0.6b")+ })+ .await+ {+ Ok(Ok(model)) => {+ info!("qwen3-asr model loaded successfully");+ Some(std::sync::Arc::new(std::sync::Mutex::new(+ Box::new(model)+ as Box<dyn crate::transcription::stt::AlternateStt + Send>,+ )))+ }+ Ok(Err(e)) => {+ error!("failed to load qwen3-asr model: {}", e);+ None+ }+ Err(e) => {+ error!("qwen3-asr model loading task panicked: {}", e);+ None+ }+ }+ } else {+ None+ }+ }+ #[cfg(not(feature = "qwen3-asr"))]+ {+ None+ }+ };+Ok(tokio::spawn(async move {while let Ok(audio) = whisper_receiver.recv() {info!("Received audio from device: {:?}", audio.device.name);@@ -529,6 +565,7 @@ impl AudioManager {metrics.clone(),&vocabulary,persisted_file_path.clone(),+ alternate_stt.clone(),).await{diff --git a/crates/screenpipe-audio/src/audio_manager/reconciliation.rs b/crates/screenpipe-audio/src/audio_manager/reconciliation.rsindex 368370702..28c943a82 100644--- a/crates/screenpipe-audio/src/audio_manager/reconciliation.rs+++ b/crates/screenpipe-audio/src/audio_manager/reconciliation.rs@@ -106,6 +106,7 @@ pub async fn reconcile_untranscribed(languages.clone(),&mut state,vocabulary,+ None,).await{diff --git a/crates/screenpipe-audio/src/core/engine.rs b/crates/screenpipe-audio/src/core/engine.rsindex b614f68b1..1173c7853 100644--- a/crates/screenpipe-audio/src/core/engine.rs+++ b/crates/screenpipe-audio/src/core/engine.rs@@ -14,6 +14,7 @@ pub enum AudioTranscriptionEngine {WhisperLargeV3TurboQuantized,WhisperLargeV3,WhisperLargeV3Quantized,+ Qwen3Asr,Disabled,}@@ -28,6 +29,7 @@ impl std::str::FromStr for AudioTranscriptionEngine {"whisper-large-quantized" => Ok(Self::WhisperLargeV3Quantized),"whisper-large-v3-turbo" => Ok(Self::WhisperLargeV3Turbo),"whisper-large-v3-turbo-quantized" => Ok(Self::WhisperLargeV3TurboQuantized),+ "qwen3-asr" => Ok(Self::Qwen3Asr),"disabled" => Ok(Self::Disabled),_ => Err(format!("unknown audio engine: {s}")),}@@ -48,6 +50,7 @@ impl fmt::Display for AudioTranscriptionEngine {AudioTranscriptionEngine::WhisperLargeV3TurboQuantized => {write!(f, "WhisperLargeV3TurboQuantized")}+ AudioTranscriptionEngine::Qwen3Asr => write!(f, "Qwen3Asr"),AudioTranscriptionEngine::Disabled => write!(f, "Disabled"),}}diff --git a/crates/screenpipe-audio/src/transcription/stt.rs b/crates/screenpipe-audio/src/transcription/stt.rsindex 458404ae3..17894ba3c 100644--- a/crates/screenpipe-audio/src/transcription/stt.rs+++ b/crates/screenpipe-audio/src/transcription/stt.rs@@ -27,6 +27,26 @@ use crate::{AudioInput, TranscriptionResult};pub const SAMPLE_RATE: u32 = 16000;+/// Trait for alternate STT engines (e.g. Qwen3-ASR via audiopipe).+/// Uses a trait object so the type is always available regardless of feature flags.+pub trait AlternateStt: Send {+ fn transcribe(&mut self, audio: &[f32], sample_rate: u32) -> Result<String>;+}++/// Optional alternate STT engine, wrapped for shared ownership + interior mutability.+pub type AlternateSttEngine = Arc<StdMutex<Box<dyn AlternateStt + Send>>>;++#[cfg(feature = "qwen3-asr")]+impl AlternateStt for audiopipe::Model {+ fn transcribe(&mut self, audio: &[f32], sample_rate: u32) -> Result<String> {+ let opts = audiopipe::TranscribeOptions::default();+ let result = self+ .transcribe_with_sample_rate(audio, sample_rate, opts)+ .map_err(|e| anyhow::anyhow!("{}", e))?;+ Ok(result.text)+ }+}+#[allow(clippy::too_many_arguments)]pub async fn stt_sync(audio: &[f32],@@ -37,6 +57,7 @@ pub async fn stt_sync(languages: Vec<Language>,whisper_state: &mut WhisperState,vocabulary: &[VocabularyEntry],+ alternate_stt: Option<AlternateSttEngine>,) -> Result<String> {let audio = audio.to_vec();@@ -51,6 +72,7 @@ pub async fn stt_sync(languages,whisper_state,vocabulary,+ alternate_stt,).await}@@ -65,6 +87,7 @@ pub async fn stt(languages: Vec<Language>,whisper_state: &mut WhisperState,vocabulary: &[VocabularyEntry],+ alternate_stt: Option<AlternateSttEngine>,) -> Result<String> {let transcription: Result<String> =if *audio_transcription_engine == AudioTranscriptionEngine::Disabled {@@ -86,6 +109,14 @@ pub async fn stt(process_with_whisper(audio, languages.clone(), whisper_state, vocabulary).await}}+ } else if *audio_transcription_engine == AudioTranscriptionEngine::Qwen3Asr {+ // Qwen3-ASR via alternate STT engine (audiopipe)+ if let Some(ref engine) = alternate_stt {+ let mut engine = engine.lock().map_err(|e| anyhow::anyhow!("stt model lock: {}", e))?;+ engine.transcribe(audio, sample_rate)+ } else {+ Err(anyhow::anyhow!("qwen3-asr model not initialized"))+ }} else {// Existing Whisper implementationprocess_with_whisper(audio, languages, whisper_state, vocabulary).await@@ -121,6 +152,7 @@ pub async fn process_audio_input(metrics: Arc<AudioPipelineMetrics>,vocabulary: &[VocabularyEntry],pre_written_path: Option<String>,+ alternate_stt: Option<AlternateSttEngine>,) -> Result<()> {// NOTE: capture_timestamp is set when audio enters the channel, but smart mode// deferral can delay processing by 20+ minutes. The DB now uses Utc::now() at@@ -191,6 +223,7 @@ pub async fn process_audio_input(timestamp,whisper_state,vocabulary,+ alternate_stt.clone(),).await?;@@ -213,6 +246,7 @@ pub async fn run_stt(timestamp: u64,whisper_state: &mut WhisperState,vocabulary: &[VocabularyEntry],+ alternate_stt: Option<AlternateSttEngine>,) -> Result<TranscriptionResult> {let audio = segment.samples.clone();let sample_rate = segment.sample_rate;@@ -225,6 +259,7 @@ pub async fn run_stt(languages.clone(),whisper_state,vocabulary,+ alternate_stt,).await{diff --git a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rsindex 1e8bf2a0b..b78075679 100644--- a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs+++ b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs@@ -293,6 +293,7 @@ async fn pipeline_with_whisper_dataset() {vec![Language::English],&mut whisper_state,&[],+ None,).await{diff --git a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/quality_regression.rs b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/quality_regression.rsindex 847ffb71e..c283f3f6b 100644--- a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/quality_regression.rs+++ b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/quality_regression.rs@@ -52,6 +52,7 @@ async fn whisper_hallucination_on_silence() {vec![Language::English],&mut whisper_state,&[],+ None,).await.expect("stt failed");@@ -98,6 +99,7 @@ async fn whisper_hallucination_on_noise() {vec![Language::English],&mut whisper_state,&[],+ None,).await.expect("stt failed");@@ -142,6 +144,7 @@ async fn whisper_hallucination_on_ambient() {vec![Language::English],&mut whisper_state,&[],+ None,).await.expect("stt failed");@@ -247,6 +250,7 @@ async fn whisper_real_speech_still_works() {vec![Language::English],&mut whisper_state,&[],+ None,).await.expect("stt failed");diff --git a/crates/screenpipe-server/Cargo.toml b/crates/screenpipe-server/Cargo.tomlindex 9c6c0fbf6..fff806617 100644--- a/crates/screenpipe-server/Cargo.toml+++ b/crates/screenpipe-server/Cargo.toml@@ -17,6 +17,7 @@ oasgen = { workspace = true }screenpipe-events = { path = "../screenpipe-events" }screenpipe-vision = { path = "../screenpipe-vision" }screenpipe-audio = { path = "../screenpipe-audio" }+audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", default-features = false, features = ["qwen3-asr"], optional = true }screenpipe-core = { path = "../screenpipe-core", features = ["security", "cloud-sync"] }screenpipe-db = { path = "../screenpipe-db" }screenpipe-accessibility = { path = "../screenpipe-accessibility", features = ["db"] }@@ -123,6 +124,7 @@ vulkan = ["screenpipe-audio/vulkan"]debug-console = ["console-subscriber"]pulseaudio = ["screenpipe-audio/pulseaudio"]apple-intelligence = ["dep:screenpipe-apple-intelligence"]+qwen3-asr = ["screenpipe-audio/qwen3-asr", "dep:audiopipe"][[bin]]name = "screenpipe"diff --git a/crates/screenpipe-server/src/cli.rs b/crates/screenpipe-server/src/cli.rsindex 6bed6e2b0..ca895de16 100644--- a/crates/screenpipe-server/src/cli.rs+++ b/crates/screenpipe-server/src/cli.rs@@ -24,6 +24,8 @@ pub enum CliAudioTranscriptionEngine {WhisperLargeV3Turbo,#[clap(name = "whisper-large-v3-turbo-quantized")]WhisperLargeV3TurboQuantized,+ #[clap(name = "qwen3-asr")]+ Qwen3Asr,/// Disable transcription (audio capture only, no speech-to-text)#[clap(name = "disabled")]Disabled,@@ -49,6 +51,7 @@ impl From<CliAudioTranscriptionEngine> for CoreAudioTranscriptionEngine {CliAudioTranscriptionEngine::WhisperLargeV3TurboQuantized => {CoreAudioTranscriptionEngine::WhisperLargeV3TurboQuantized}+ CliAudioTranscriptionEngine::Qwen3Asr => CoreAudioTranscriptionEngine::Qwen3Asr,CliAudioTranscriptionEngine::Disabled => CoreAudioTranscriptionEngine::Disabled,}}diff --git a/crates/screenpipe-server/src/routes/retranscribe.rs b/crates/screenpipe-server/src/routes/retranscribe.rsindex a4fe4e080..4ad19dec9 100644--- a/crates/screenpipe-server/src/routes/retranscribe.rs+++ b/crates/screenpipe-server/src/routes/retranscribe.rs@@ -111,18 +111,63 @@ pub async fn retranscribe_handler(}}- // 3. Get WhisperContext for re-transcription+ // 3. Build alternate STT engine for Qwen3-ASR retranscription+ let alternate_stt: Option<screenpipe_audio::transcription::stt::AlternateSttEngine> = {+ #[cfg(feature = "qwen3-asr")]+ {+ use screenpipe_audio::core::engine::AudioTranscriptionEngine;+ if *engine == AudioTranscriptionEngine::Qwen3Asr {+ match audiopipe::Model::from_pretrained("qwen3-asr-0.6b") {+ Ok(model) => {+ info!("loaded qwen3-asr model for retranscription");+ Some(std::sync::Arc::new(std::sync::Mutex::new(+ Box::new(model)+ as Box<+ dyn screenpipe_audio::transcription::stt::AlternateStt + Send,+ >,+ )))+ }+ Err(e) => {+ error!("failed to load qwen3-asr for retranscription: {}", e);+ return error_response(+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to load qwen3-asr: {}", e),+ );+ }+ }+ } else {+ None+ }+ }+ #[cfg(not(feature = "qwen3-asr"))]+ {+ None+ }+ };++ // 4. Get WhisperContext for re-transcription (not needed for Qwen3-ASR)let whisper_ctx = match audio_manager.whisper_context().await {Some(ctx) => ctx,None => {- return error_response(- StatusCode::SERVICE_UNAVAILABLE,- "whisper model not loaded — audio recording may be disabled".into(),- );+ use screenpipe_audio::core::engine::AudioTranscriptionEngine;+ if *engine == AudioTranscriptionEngine::Qwen3Asr && alternate_stt.is_some() {+ // Qwen3-ASR doesn't need WhisperContext; create a dummy one won't work,+ // so we handle this in the loop below+ // For now, return error if whisper isn't loaded (we still need it for state creation)+ return error_response(+ StatusCode::SERVICE_UNAVAILABLE,+ "whisper model not loaded — audio recording may be disabled".into(),+ );+ } else {+ return error_response(+ StatusCode::SERVICE_UNAVAILABLE,+ "whisper model not loaded — audio recording may be disabled".into(),+ );+ }}};- // 4. Process each chunk+ // 5. Process each chunklet mut results = Vec::new();let mut processed = 0;@@ -175,6 +220,7 @@ pub async fn retranscribe_handler(languages.clone(),&mut whisper_state,&effective_vocabulary,+ alternate_stt.clone(),).await{