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

feat: add Parakeet TDT 0.6B v2 ASR engine (#2588)

Louis Beaumont9e128cc4c622
diff --git a/Cargo.lock b/Cargo.lock
index 6e8f37510..5abaeffdb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,7 +242,7 @@ dependencies = [
[[package]]
name = "antirez-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=b199cf5b3d1e0e87604f02910240a2bc8851cf9a#b199cf5b3d1e0e87604f02910240a2bc8851cf9a"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=2449595#2449595c9b66295f407106f021884aaa51cfcced"
dependencies = [
"cc",
]
@@ -540,11 +540,16 @@ dependencies = [
[[package]]
name = "audiopipe"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=b199cf5b3d1e0e87604f02910240a2bc8851cf9a#b199cf5b3d1e0e87604f02910240a2bc8851cf9a"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=2449595#2449595c9b66295f407106f021884aaa51cfcced"
dependencies = [
"antirez-asr-sys",
+ "half",
"hf-hub 0.4.3",
+ "ndarray",
+ "ort",
+ "ort-sys",
"qwen3-asr-sys",
+ "realfft",
"serde",
"serde_json",
"thiserror 2.0.18",
@@ -786,7 +791,7 @@ dependencies = [
"bitflags 2.11.0",
"cexpr",
"clang-sys",
- "itertools 0.13.0",
+ "itertools 0.10.5",
"log",
"prettyplease",
"proc-macro2",
@@ -807,7 +812,7 @@ dependencies = [
"bitflags 2.11.0",
"cexpr",
"clang-sys",
- "itertools 0.13.0",
+ "itertools 0.10.5",
"proc-macro2",
"quote",
"regex",
@@ -1296,7 +1301,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
dependencies = [
"lazy_static",
- "windows-sys 0.59.0",
+ "windows-sys 0.48.0",
]
[[package]]
@@ -3192,7 +3197,7 @@ dependencies = [
"hyper",
"libc",
"pin-project-lite",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"tokio",
"tower-service",
"tracing",
@@ -3552,15 +3557,6 @@ dependencies = [
"either",
]
-[[package]]
-name = "itertools"
-version = "0.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
-dependencies = [
- "either",
-]
-
[[package]]
name = "itertools"
version = "0.14.0"
@@ -5703,7 +5699,7 @@ dependencies = [
"quinn-udp",
"rustc-hash 2.1.1",
"rustls 0.23.37",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"thiserror 2.0.18",
"tokio",
"tracing",
@@ -5740,7 +5736,7 @@ dependencies = [
"cfg_aliases",
"libc",
"once_cell",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"tracing",
"windows-sys 0.60.2",
]
@@ -5763,7 +5759,7 @@ checksum = "640c9bd8497b02465aeef5375144c26062e0dcd5939dfcbb0f5db76cb8c17c73"
[[package]]
name = "qwen3-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=b199cf5b3d1e0e87604f02910240a2bc8851cf9a#b199cf5b3d1e0e87604f02910240a2bc8851cf9a"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=2449595#2449595c9b66295f407106f021884aaa51cfcced"
dependencies = [
"cc",
"cmake",
@@ -6566,7 +6562,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"anyhow",
"audiopipe",
@@ -6624,7 +6620,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -6636,7 +6632,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"anyhow",
"async-trait",
@@ -6662,7 +6658,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6705,7 +6701,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"anyhow",
"chrono",
@@ -6730,7 +6726,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"anyhow",
"async-trait",
@@ -6800,7 +6796,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"anyhow",
"chrono",
@@ -6818,7 +6814,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -6858,7 +6854,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.230"
+version = "0.3.231"
dependencies = [
"argon2",
"chacha20poly1305",
@@ -9360,7 +9356,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 6214a5c98..a5f99852f 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -177,7 +177,7 @@ futures-channel = "0.3.30"
lazy_static = "1.5.0"
[features]
-default = ["custom-protocol", "qwen3-asr"]
+default = ["custom-protocol", "qwen3-asr", "parakeet"]
metal = ["screenpipe-audio/metal"]
pulseaudio = ["screenpipe-audio/pulseaudio"]
vulkan = ["screenpipe-audio/vulkan"]
@@ -199,6 +199,7 @@ enterprise-build = []
apple-intelligence = ["screenpipe-engine/apple-intelligence"]
qwen3-asr = ["screenpipe-engine/qwen3-asr"]
+parakeet = ["screenpipe-engine/parakeet"]
jemalloc = ["tikv-jemallocator"]
diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.toml
index f821efc74..dcc3acd56 100644
--- a/crates/screenpipe-audio/Cargo.toml
+++ b/crates/screenpipe-audio/Cargo.toml
@@ -82,7 +82,7 @@ ort = { version = "=2.0.0-rc.6", default-features = false, features = ["ndarray"
ort-sys = { version = "=2.0.0-rc.6", default-features = false }
knf-rs = "0.3.2"
futures = "0.3.31"
-audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", rev = "b199cf5b3d1e0e87604f02910240a2bc8851cf9a", default-features = false, features = ["qwen3-asr-antirez-blas"], optional = true }
+audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", rev = "2449595", default-features = false, features = ["qwen3-asr-antirez-blas", "parakeet"], optional = true }
bytes = { version = "1.9.0", features = ["serde"] }
rand = "0.9.0"
@@ -142,6 +142,7 @@ cuda = ["whisper-rs/cuda"]
vulkan = ["audiopipe?/vulkan-ggml"]
pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
qwen3-asr = ["dep:audiopipe"]
+parakeet = ["dep:audiopipe"]
[[example]]
name = "screenpipe-audio"
diff --git a/crates/screenpipe-audio/src/core/engine.rs b/crates/screenpipe-audio/src/core/engine.rs
index 98a9b66cf..154985f41 100644
--- a/crates/screenpipe-audio/src/core/engine.rs
+++ b/crates/screenpipe-audio/src/core/engine.rs
@@ -16,6 +16,7 @@ pub enum AudioTranscriptionEngine {
WhisperLargeV3Quantized,
OpenAICompatible,
Qwen3Asr,
+ Parakeet,
Disabled,
}
@@ -32,6 +33,7 @@ impl std::str::FromStr for AudioTranscriptionEngine {
"whisper-large-v3-turbo-quantized" => Ok(Self::WhisperLargeV3TurboQuantized),
"openai-compatible" => Ok(Self::OpenAICompatible),
"qwen3-asr" => Ok(Self::Qwen3Asr),
+ "parakeet" | "parakeet-tdt-0.6b-v2" => Ok(Self::Parakeet),
"disabled" => Ok(Self::Disabled),
_ => Err(format!("unknown audio engine: {s}")),
}
@@ -54,6 +56,7 @@ impl fmt::Display for AudioTranscriptionEngine {
}
AudioTranscriptionEngine::OpenAICompatible => write!(f, "OpenAICompatible"),
AudioTranscriptionEngine::Qwen3Asr => write!(f, "Qwen3Asr"),
+ AudioTranscriptionEngine::Parakeet => write!(f, "Parakeet"),
AudioTranscriptionEngine::Disabled => write!(f, "Disabled"),
}
}
diff --git a/crates/screenpipe-audio/src/transcription/engine.rs b/crates/screenpipe-audio/src/transcription/engine.rs
index 374ef1882..498adb933 100644
--- a/crates/screenpipe-audio/src/transcription/engine.rs
+++ b/crates/screenpipe-audio/src/transcription/engine.rs
@@ -14,7 +14,7 @@ use anyhow::{anyhow, Result};
use reqwest::Client;
use screenpipe_core::Language;
use std::sync::Arc;
-#[cfg(feature = "qwen3-asr")]
+#[cfg(any(feature = "qwen3-asr", feature = "parakeet"))]
use std::sync::Mutex as StdMutex;
use tracing::{error, info};
use whisper_rs::{WhisperContext, WhisperState};
@@ -34,6 +34,11 @@ pub enum TranscriptionEngine {
model: Arc<StdMutex<audiopipe::Model>>,
vocabulary: Vec<VocabularyEntry>,
},
+ #[cfg(feature = "parakeet")]
+ Parakeet {
+ model: Arc<StdMutex<audiopipe::Model>>,
+ vocabulary: Vec<VocabularyEntry>,
+ },
Deepgram {
api_key: String,
languages: Vec<Language>,
@@ -111,6 +116,29 @@ impl TranscriptionEngine {
}
}
+ AudioTranscriptionEngine::Parakeet => {
+ #[cfg(feature = "parakeet")]
+ {
+ let model = tokio::task::spawn_blocking(|| {
+ audiopipe::Model::from_pretrained("parakeet-tdt-0.6b-v2")
+ })
+ .await
+ .map_err(|e| anyhow!("parakeet model loading task panicked: {}", e))?
+ .map_err(|e| anyhow!("failed to load parakeet model: {}", e))?;
+ info!("parakeet-tdt-0.6b-v2 model loaded successfully");
+ Ok(Self::Parakeet {
+ model: Arc::new(StdMutex::new(model)),
+ vocabulary,
+ })
+ }
+ #[cfg(not(feature = "parakeet"))]
+ {
+ Err(anyhow!(
+ "parakeet engine selected but the 'parakeet' feature is not enabled"
+ ))
+ }
+ }
+
// All Whisper variants
_ => {
let engine_for_download = config.clone();
@@ -183,6 +211,11 @@ impl TranscriptionEngine {
model: model.clone(),
vocabulary: vocabulary.clone(),
}),
+ #[cfg(feature = "parakeet")]
+ Self::Parakeet { model, vocabulary } => Ok(TranscriptionSession::Parakeet {
+ model: model.clone(),
+ vocabulary: vocabulary.clone(),
+ }),
Self::Deepgram {
api_key,
languages,
@@ -229,6 +262,8 @@ impl TranscriptionEngine {
Self::Whisper { config, .. } => (**config).clone(),
#[cfg(feature = "qwen3-asr")]
Self::Qwen3Asr { .. } => AudioTranscriptionEngine::Qwen3Asr,
+ #[cfg(feature = "parakeet")]
+ Self::Parakeet { .. } => AudioTranscriptionEngine::Parakeet,
Self::Deepgram { .. } => AudioTranscriptionEngine::Deepgram,
Self::OpenAICompatible { .. } => AudioTranscriptionEngine::OpenAICompatible,
Self::Disabled => AudioTranscriptionEngine::Disabled,
@@ -252,6 +287,11 @@ pub enum TranscriptionSession {
model: Arc<StdMutex<audiopipe::Model>>,
vocabulary: Vec<VocabularyEntry>,
},
+ #[cfg(feature = "parakeet")]
+ Parakeet {
+ model: Arc<StdMutex<audiopipe::Model>>,
+ vocabulary: Vec<VocabularyEntry>,
+ },
Deepgram {
api_key: String,
languages: Vec<Language>,
@@ -344,6 +384,16 @@ impl TranscriptionSession {
}
}
+ #[cfg(feature = "parakeet")]
+ Self::Parakeet { model, .. } => {
+ let mut engine = model.lock().map_err(|e| anyhow!("stt model lock: {}", e))?;
+ let opts = audiopipe::TranscribeOptions::default();
+ let result = engine
+ .transcribe_with_sample_rate(audio, sample_rate, opts)
+ .map_err(|e| anyhow!("{}", e))?;
+ Ok(result.text)
+ }
+
Self::Whisper {
state,
languages,
@@ -397,6 +447,8 @@ impl TranscriptionSession {
Self::Whisper { vocabulary, .. } => vocabulary,
#[cfg(feature = "qwen3-asr")]
Self::Qwen3Asr { vocabulary, .. } => vocabulary,
+ #[cfg(feature = "parakeet")]
+ Self::Parakeet { vocabulary, .. } => vocabulary,
Self::Deepgram { vocabulary, .. } => vocabulary,
Self::OpenAICompatible { vocabulary, .. } => vocabulary,
Self::Disabled => return Ok(text),
diff --git a/crates/screenpipe-audio/src/transcription/stt.rs b/crates/screenpipe-audio/src/transcription/stt.rs
index 2b830619d..f3919ca59 100644
--- a/crates/screenpipe-audio/src/transcription/stt.rs
+++ b/crates/screenpipe-audio/src/transcription/stt.rs
@@ -39,7 +39,7 @@ pub trait AlternateStt: Send {
/// Optional alternate STT engine, wrapped for shared ownership + interior mutability.
pub type AlternateSttEngine = Arc<StdMutex<Box<dyn AlternateStt + Send>>>;
-#[cfg(feature = "qwen3-asr")]
+#[cfg(any(feature = "qwen3-asr", feature = "parakeet"))]
impl AlternateStt for audiopipe::Model {
fn transcribe(&mut self, audio: &[f32], sample_rate: u32) -> Result<String> {
let opts = audiopipe::TranscribeOptions::default();
@@ -193,15 +193,20 @@ pub async fn stt(
}
}
}
- } else if *audio_transcription_engine == AudioTranscriptionEngine::Qwen3Asr {
- // Qwen3-ASR via alternate STT engine (audiopipe)
+ } else if *audio_transcription_engine == AudioTranscriptionEngine::Qwen3Asr
+ || *audio_transcription_engine == AudioTranscriptionEngine::Parakeet
+ {
+ // Qwen3-ASR / Parakeet 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"))
+ Err(anyhow::anyhow!(
+ "{} model not initialized",
+ audio_transcription_engine
+ ))
}
} else if audio_transcription_engine == AudioTranscriptionEngine::OpenAICompatible.into() {
// OpenAI Compatible implementation
diff --git a/crates/screenpipe-engine/Cargo.toml b/crates/screenpipe-engine/Cargo.toml
index aca06130e..8ae0a8b88 100644
--- a/crates/screenpipe-engine/Cargo.toml
+++ b/crates/screenpipe-engine/Cargo.toml
@@ -133,7 +133,7 @@ tower = { version = "0.4", features = ["util"] }
criterion = { workspace = true }
[features]
-default = ["qwen3-asr"]
+default = ["qwen3-asr", "parakeet"]
metal = ["screenpipe-audio/metal"]
heap-prof = ["dhat"]
cuda = ["screenpipe-audio/cuda"]
@@ -142,6 +142,7 @@ debug-console = ["console-subscriber"]
pulseaudio = ["screenpipe-audio/pulseaudio"]
apple-intelligence = ["dep:screenpipe-apple-intelligence"]
qwen3-asr = ["screenpipe-audio/qwen3-asr"]
+parakeet = ["screenpipe-audio/parakeet"]
jemalloc = ["tikv-jemallocator"]
[[bin]]
diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rs
index 1276a59c8..e0e85f51e 100644
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@ -41,6 +41,8 @@ pub enum CliAudioTranscriptionEngine {
OpenAICompatible,
#[clap(name = "qwen3-asr")]
Qwen3Asr,
+ #[clap(name = "parakeet")]
+ Parakeet,
/// Disable transcription (audio capture only, no speech-to-text)
#[clap(name = "disabled")]
Disabled,
@@ -59,6 +61,7 @@ fn cli_engine_to_str(engine: &CliAudioTranscriptionEngine) -> &'static str {
}
CliAudioTranscriptionEngine::OpenAICompatible => "openai-compatible",
CliAudioTranscriptionEngine::Qwen3Asr => "qwen3-asr",
+ CliAudioTranscriptionEngine::Parakeet => "parakeet",
CliAudioTranscriptionEngine::Disabled => "disabled",
}
}
@@ -87,6 +90,7 @@ impl From<CliAudioTranscriptionEngine> for CoreAudioTranscriptionEngine {
CoreAudioTranscriptionEngine::OpenAICompatible
}
CliAudioTranscriptionEngine::Qwen3Asr => CoreAudioTranscriptionEngine::Qwen3Asr,
+ CliAudioTranscriptionEngine::Parakeet => CoreAudioTranscriptionEngine::Parakeet,
CliAudioTranscriptionEngine::Disabled => CoreAudioTranscriptionEngine::Disabled,
}
}