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

update to ort 2.0.0-rc.10 (#3009)

Divanshu53452b6465ef
diff --git a/Cargo.lock b/Cargo.lock
index 729168003..ed88d2b98 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=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"cc",
]
@@ -560,7 +560,7 @@ dependencies = [
[[package]]
name = "audiopipe"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"antirez-asr-sys",
"half",
@@ -1074,7 +1074,7 @@ version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c6b04e07d8080154ed4ac03546d9a2b303cc2fe1901ba0b35b301516e289368"
dependencies = [
- "smallvec",
+ "smallvec 1.15.1",
"target-lexicon",
]
@@ -2411,7 +2411,7 @@ dependencies = [
"lebe",
"miniz_oxide",
"rayon-core",
- "smallvec",
+ "smallvec 1.15.1",
"zune-inflate",
]
@@ -3239,7 +3239,7 @@ dependencies = [
"httpdate",
"itoa",
"pin-project-lite",
- "smallvec",
+ "smallvec 1.15.1",
"tokio",
"want",
]
@@ -3371,7 +3371,7 @@ dependencies = [
"icu_normalizer_data",
"icu_properties",
"icu_provider",
- "smallvec",
+ "smallvec 1.15.1",
"zerovec",
]
@@ -3435,7 +3435,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
dependencies = [
"idna_adapter",
- "smallvec",
+ "smallvec 1.15.1",
"utf8_iter",
]
@@ -4416,7 +4416,7 @@ dependencies = [
"num_enum",
"parking_lot",
"paste",
- "smallvec",
+ "smallvec 1.15.1",
"strum",
"thiserror 2.0.18",
]
@@ -4447,7 +4447,7 @@ dependencies = [
"futures-util",
"parking_lot",
"portable-atomic",
- "smallvec",
+ "smallvec 1.15.1",
"tagptr",
"uuid",
]
@@ -4695,7 +4695,7 @@ dependencies = [
"num-traits",
"rand 0.8.5",
"serde",
- "smallvec",
+ "smallvec 1.15.1",
"zeroize",
]
@@ -5350,28 +5350,29 @@ dependencies = [
[[package]]
name = "ort"
-version = "2.0.0-rc.6"
+version = "2.0.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5f95fe501e1cb81dec2f66ee3129025759b602817aa2c77ff421390c418cc34"
+checksum = "1fa7e49bd669d32d7bc2a15ec540a527e7764aec722a45467814005725bcd721"
dependencies = [
"half",
"libloading",
"ndarray",
"ort-sys",
+ "smallvec 2.0.0-alpha.10",
"tracing",
]
[[package]]
name = "ort-sys"
-version = "2.0.0-rc.6"
+version = "2.0.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4174960a7b93a17564a05b26e05889f0dea9ee70e68db5841f27b40c0c9804e"
+checksum = "e2aba9f5c7c479925205799216e7e5d07cc1d4fa76ea8058c60a9a30f6a4e890"
dependencies = [
"flate2",
"pkg-config",
"sha2 0.10.9",
"tar",
- "ureq 2.12.1",
+ "ureq 3.3.0",
]
[[package]]
@@ -5481,7 +5482,7 @@ dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.5.18",
- "smallvec",
+ "smallvec 1.15.1",
"windows-link 0.2.1",
]
@@ -6041,7 +6042,7 @@ checksum = "478e0585659a122aa407eb7e3c0e1fa51b1d8a870038bd29f0cf4a8551eea972"
[[package]]
name = "qwen3-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"cc",
"cmake",
@@ -7690,6 +7691,12 @@ version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+[[package]]
+name = "smallvec"
+version = "2.0.0-alpha.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51d44cfb396c3caf6fbfd0ab422af02631b69ddd96d2eff0b0f0724f9024051b"
+
[[package]]
name = "socket2"
version = "0.5.10"
@@ -7838,7 +7845,7 @@ dependencies = [
"serde",
"serde_json",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlformat",
"thiserror 1.0.69",
"tokio",
@@ -7922,7 +7929,7 @@ dependencies = [
"serde",
"sha1 0.10.6",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
@@ -7962,7 +7969,7 @@ dependencies = [
"serde_json",
"sha1 0.10.6",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
@@ -8972,7 +8979,7 @@ dependencies = [
"once_cell",
"regex-automata",
"sharded-slab",
- "smallvec",
+ "smallvec 1.15.1",
"thread_local",
"tracing",
"tracing-core",
@@ -9174,13 +9181,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dea7109cdcd5864d4eeb1b58a1648dc9bf520360d7af16ec26d0a9354bafcfc0"
dependencies = [
"base64 0.22.1",
+ "der 0.8.0",
"flate2",
"log",
+ "native-tls",
"percent-encoding",
"rustls 0.23.38",
"rustls-pki-types",
+ "socks",
"ureq-proto",
"utf8-zero",
+ "webpki-root-certs",
"webpki-roots 1.0.6",
]
@@ -9259,7 +9270,7 @@ dependencies = [
[[package]]
name = "vad-rs"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/vad-rs-1.git#dd4d7cdf97635d2e74fc0b11b3f1035ae91609fc"
+source = "git+https://github.com/divanshu-go/vad-rs-1.git?branch=main#b14b26ec7093f5398ef6658020259cd7c130ea6c"
dependencies = [
"eyre",
"ndarray",
@@ -9453,7 +9464,7 @@ dependencies = [
"downcast-rs",
"rustix 1.1.4",
"scoped-tls",
- "smallvec",
+ "smallvec 1.15.1",
"wayland-sys",
]
@@ -9551,6 +9562,15 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "webpki-root-certs"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31141ce3fc3e300ae89b78c0dd67f9708061d1d2eda54b8209346fd6be9a92c"
+dependencies = [
+ "rustls-pki-types",
+]
+
[[package]]
name = "webpki-roots"
version = "0.24.0"
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index c33fb9e6d..b2719b9e4 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -87,7 +87,7 @@ dependencies = [
"mime",
"percent-encoding",
"pin-project-lite",
- "smallvec",
+ "smallvec 1.15.1",
"tokio",
"tokio-util",
"tracing",
@@ -186,7 +186,7 @@ dependencies = [
"serde",
"serde_json",
"serde_urlencoded",
- "smallvec",
+ "smallvec 1.15.1",
"socket2 0.6.3",
"time",
"tracing",
@@ -388,7 +388,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]]
@@ -399,13 +399,13 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
name = "antirez-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"cc",
]
@@ -831,7 +831,7 @@ dependencies = [
[[package]]
name = "audiopipe"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"antirez-asr-sys",
"half",
@@ -1589,7 +1589,7 @@ version = "0.15.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
dependencies = [
- "smallvec",
+ "smallvec 1.15.1",
"target-lexicon 0.12.16",
]
@@ -1599,7 +1599,7 @@ version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c6b04e07d8080154ed4ac03546d9a2b303cc2fe1901ba0b35b301516e289368"
dependencies = [
- "smallvec",
+ "smallvec 1.15.1",
"target-lexicon 0.13.3",
]
@@ -2492,7 +2492,7 @@ dependencies = [
"phf 0.10.1",
"proc-macro2",
"quote",
- "smallvec",
+ "smallvec 1.15.1",
"syn 1.0.109",
]
@@ -2506,7 +2506,7 @@ dependencies = [
"dtoa-short",
"itoa",
"phf 0.13.1",
- "smallvec",
+ "smallvec 1.15.1",
]
[[package]]
@@ -2892,7 +2892,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.2",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3293,7 +3293,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3396,7 +3396,7 @@ dependencies = [
"lebe",
"miniz_oxide",
"rayon-core",
- "smallvec",
+ "smallvec 1.15.1",
"zune-inflate",
]
@@ -4128,7 +4128,7 @@ dependencies = [
"libc",
"once_cell",
"pin-project-lite",
- "smallvec",
+ "smallvec 1.15.1",
"thiserror 1.0.69",
]
@@ -4155,7 +4155,7 @@ dependencies = [
"gobject-sys 0.21.5",
"libc",
"system-deps 7.0.7",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4197,7 +4197,7 @@ dependencies = [
"libc",
"memchr",
"once_cell",
- "smallvec",
+ "smallvec 1.15.1",
"thiserror 1.0.69",
]
@@ -4219,7 +4219,7 @@ dependencies = [
"gobject-sys 0.21.5",
"libc",
"memchr",
- "smallvec",
+ "smallvec 1.15.1",
]
[[package]]
@@ -4792,7 +4792,7 @@ dependencies = [
"itoa",
"pin-project-lite",
"pin-utils",
- "smallvec",
+ "smallvec 1.15.1",
"tokio",
"want",
]
@@ -4848,7 +4848,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
- "socket2 0.5.10",
+ "socket2 0.6.3",
"tokio",
"tower-service",
"tracing",
@@ -4937,7 +4937,7 @@ dependencies = [
"icu_normalizer_data",
"icu_properties",
"icu_provider",
- "smallvec",
+ "smallvec 1.15.1",
"zerovec",
]
@@ -5001,7 +5001,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
dependencies = [
"idna_adapter",
- "smallvec",
+ "smallvec 1.15.1",
"utf8_iter",
]
@@ -5293,7 +5293,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5574,7 +5574,7 @@ checksum = "c62026ae44756f8a599ba21140f350303d4f08dcdcc71b5ad9c9bb8128c13c62"
dependencies = [
"arrayvec",
"euclid",
- "smallvec",
+ "smallvec 1.15.1",
]
[[package]]
@@ -6389,7 +6389,7 @@ dependencies = [
"num_enum",
"parking_lot",
"paste",
- "smallvec",
+ "smallvec 1.15.1",
"strum",
"thiserror 2.0.18",
]
@@ -6420,7 +6420,7 @@ dependencies = [
"futures-util",
"parking_lot",
"portable-atomic",
- "smallvec",
+ "smallvec 1.15.1",
"tagptr",
"uuid",
]
@@ -6766,7 +6766,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6807,7 +6807,7 @@ dependencies = [
"num-traits",
"rand 0.8.5",
"serde",
- "smallvec",
+ "smallvec 1.15.1",
"zeroize",
]
@@ -7581,28 +7581,29 @@ dependencies = [
[[package]]
name = "ort"
-version = "2.0.0-rc.6"
+version = "2.0.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5f95fe501e1cb81dec2f66ee3129025759b602817aa2c77ff421390c418cc34"
+checksum = "1fa7e49bd669d32d7bc2a15ec540a527e7764aec722a45467814005725bcd721"
dependencies = [
"half",
"libloading 0.8.9",
"ndarray",
"ort-sys",
+ "smallvec 2.0.0-alpha.10",
"tracing",
]
[[package]]
name = "ort-sys"
-version = "2.0.0-rc.6"
+version = "2.0.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4174960a7b93a17564a05b26e05889f0dea9ee70e68db5841f27b40c0c9804e"
+checksum = "e2aba9f5c7c479925205799216e7e5d07cc1d4fa76ea8058c60a9a30f6a4e890"
dependencies = [
"flate2",
"pkg-config",
"sha2 0.10.9",
"tar",
- "ureq 2.12.1",
+ "ureq 3.3.0",
]
[[package]]
@@ -7628,7 +7629,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [
"libc",
- "windows-sys 0.45.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7761,7 +7762,7 @@ dependencies = [
"cfg-if 1.0.4",
"libc",
"redox_syscall 0.5.18",
- "smallvec",
+ "smallvec 1.15.1",
"windows-link 0.2.1",
]
@@ -8579,7 +8580,7 @@ dependencies = [
"quinn-udp",
"rustc-hash 2.1.1",
"rustls 0.23.37",
- "socket2 0.5.10",
+ "socket2 0.6.3",
"thiserror 2.0.18",
"tokio",
"tracing",
@@ -8616,7 +8617,7 @@ dependencies = [
"cfg_aliases 0.2.1",
"libc",
"once_cell",
- "socket2 0.5.10",
+ "socket2 0.6.3",
"tracing",
"windows-sys 0.60.2",
]
@@ -8639,7 +8640,7 @@ checksum = "478e0585659a122aa407eb7e3c0e1fa51b1d8a870038bd29f0cf4a8551eea972"
[[package]]
name = "qwen3-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
+source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"
dependencies = [
"cc",
"cmake",
@@ -9404,7 +9405,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys 0.12.1",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -9492,7 +9493,7 @@ dependencies = [
"security-framework",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -9554,7 +9555,7 @@ dependencies = [
"bytemuck",
"core_maths",
"log",
- "smallvec",
+ "smallvec 1.15.1",
"ttf-parser",
"unicode-bidi-mirroring",
"unicode-ccc",
@@ -10247,7 +10248,7 @@ dependencies = [
"phf_codegen 0.8.0",
"precomputed-hash",
"servo_arc 0.2.0",
- "smallvec",
+ "smallvec 1.15.1",
]
[[package]]
@@ -10266,7 +10267,7 @@ dependencies = [
"precomputed-hash",
"rustc-hash 2.1.1",
"servo_arc 0.4.3",
- "smallvec",
+ "smallvec 1.15.1",
]
[[package]]
@@ -10936,6 +10937,12 @@ version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+[[package]]
+name = "smallvec"
+version = "2.0.0-alpha.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51d44cfb396c3caf6fbfd0ab422af02631b69ddd96d2eff0b0f0724f9024051b"
+
[[package]]
name = "smart-default"
version = "0.7.1"
@@ -10964,7 +10971,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -11167,7 +11174,7 @@ dependencies = [
"serde",
"serde_json",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlformat",
"thiserror 1.0.69",
"tokio",
@@ -11251,7 +11258,7 @@ dependencies = [
"serde",
"sha1 0.10.6",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
@@ -11291,7 +11298,7 @@ dependencies = [
"serde_json",
"sha1 0.10.6",
"sha2 0.10.9",
- "smallvec",
+ "smallvec 1.15.1",
"sqlx-core",
"stringprep",
"thiserror 1.0.69",
@@ -12559,7 +12566,7 @@ dependencies = [
"getrandom 0.4.2",
"once_cell",
"rustix 1.1.4",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -13172,7 +13179,7 @@ dependencies = [
"once_cell",
"regex-automata",
"sharded-slab",
- "smallvec",
+ "smallvec 1.15.1",
"thread_local",
"tracing",
"tracing-core",
@@ -13273,7 +13280,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -13486,6 +13493,7 @@ dependencies = [
"percent-encoding",
"rustls 0.23.37",
"rustls-pki-types",
+ "socks",
"ureq-proto",
"utf8-zero",
"webpki-root-certs",
@@ -13612,7 +13620,7 @@ dependencies = [
[[package]]
name = "vad-rs"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/vad-rs-1.git#dd4d7cdf97635d2e74fc0b11b3f1035ae91609fc"
+source = "git+https://github.com/divanshu-go/vad-rs-1.git?branch=main#b14b26ec7093f5398ef6658020259cd7c130ea6c"
dependencies = [
"eyre",
"ndarray",
@@ -13864,7 +13872,7 @@ dependencies = [
"downcast-rs",
"rustix 1.1.4",
"scoped-tls",
- "smallvec",
+ "smallvec 1.15.1",
"wayland-sys",
]
@@ -14210,7 +14218,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/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.toml
index 63841a8ac..39657a32f 100644
--- a/crates/screenpipe-audio/Cargo.toml
+++ b/crates/screenpipe-audio/Cargo.toml
@@ -37,7 +37,7 @@ chrono = { version = "0.4.31", features = ["serde"] }
# Local Embeddings + STT
# Using fork of vad-rs with Silero VAD v5/v6 support
# v5/v6: 3x faster, 6000+ languages, better accuracy
-vad-rs = { git = "https://github.com/screenpipe/vad-rs-1.git", default-features = false }
+vad-rs = { git = "https://github.com/divanshu-go/vad-rs-1.git", branch="main", default-features = false }
anyhow = "1.0.86"
hf-hub = { workspace = true }
# https://github.com/pdeljanov/Symphonia/tree/master?tab=readme-ov-file#optimizations
@@ -79,11 +79,11 @@ lazy_static = { version = "1.4.0" }
realfft = "3.4.0"
ndarray = "0.16"
# Base ort dep — each platform overrides with specific features below
-ort = { version = "=2.0.0-rc.6", default-features = false, features = ["ndarray", "half"] }
-ort-sys = { version = "=2.0.0-rc.6", default-features = false }
+ort = { version = "=2.0.0-rc.10", default-features = false, features = ["ndarray", "half"] }
+ort-sys = { version = "=2.0.0-rc.10", default-features = false }
knf-rs = "0.3.2"
futures = "0.3.31"
-audiopipe = { git = "https://github.com/screenpipe/audiopipe.git", rev = "cce3776", default-features = false, features = ["qwen3-asr-antirez-blas", "parakeet"], optional = true }
+audiopipe = { git = "https://github.com/divanshu-go/audiopipe.git", branch = "main", default-features = false, features = ["qwen3-asr-antirez-blas", "parakeet"], optional = true }
mlx-rs = { version = "0.25", optional = true }
bytes = { version = "1.9.0", features = ["serde"] }
rand = "0.9.0"
@@ -93,7 +93,7 @@ libpulse-binding = { version = "2.28", optional = true }
libpulse-simple-binding = { version = "2.28", optional = true }
# Bundle ONNX Runtime on Linux (same as macOS). load-dynamic was tried but
# broke systems without a system-installed libonnxruntime.so (see #2506).
-ort = { version = "=2.0.0-rc.6", features = ["download-binaries"] }
+ort = { version = "=2.0.0-rc.10", features = ["download-binaries"] }
# Windows COM API for querying the "Default Communications Device" role.
# MS Teams/Zoom route audio to the eCommunications endpoint, which may
@@ -107,7 +107,7 @@ windows = { version = "0.58", features = [
] }
[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
-ort = { version = "=2.0.0-rc.6", features = [
+ort = { version = "=2.0.0-rc.10", features = [
"download-binaries",
"copy-dylibs",
] }
@@ -117,8 +117,8 @@ libsamplerate-sys = "0.1.10"
# Windows ARM64: use our own ONNX Runtime DLL at runtime (load-dynamic); no compile-time link, no ort.pyke.io cache
[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
-ort = { version = "=2.0.0-rc.6", default-features = false, features = ["load-dynamic"] }
-ort-sys = { version = "=2.0.0-rc.6", default-features = false }
+ort = { version = "=2.0.0-rc.10", default-features = false, features = ["load-dynamic"] }
+ort-sys = { version = "=2.0.0-rc.10", default-features = false }
esaxx-rs = "0.1.10"
samplerate = { version = "0.2.4" }
libsamplerate-sys = "0.1.10"
@@ -127,7 +127,7 @@ libsamplerate-sys = "0.1.10"
cidre = { git = "https://github.com/yury/cidre.git" }
once_cell = "1.17.1"
objc = "0.2.7"
-ort = { version = "=2.0.0-rc.6", features = ["download-binaries"] }
+ort = { version = "=2.0.0-rc.10", features = ["download-binaries"] }
[dev-dependencies]
tempfile = "3.3.0"
diff --git a/crates/screenpipe-audio/src/speaker/embedding.rs b/crates/screenpipe-audio/src/speaker/embedding.rs
index 65d94d158..ea4179afc 100644
--- a/crates/screenpipe-audio/src/speaker/embedding.rs
+++ b/crates/screenpipe-audio/src/speaker/embedding.rs
@@ -1,11 +1,10 @@
use anyhow::{Context, Result};
use ndarray::Array2;
-use ort::Session;
use std::path::Path;
#[derive(Debug)]
pub struct EmbeddingExtractor {
- session: Session,
+ session: ort::session::Session,
}
impl EmbeddingExtractor {
@@ -18,13 +17,13 @@ impl EmbeddingExtractor {
.map_err(anyhow::Error::msg)
.context("compute_fbank failed")?;
let features = features.insert_axis(ndarray::Axis(0)); // Add batch dimension
- let inputs = ort::inputs! ["feats" => features.view()]?;
+ let inputs = ort::inputs!["feats" => ort::value::TensorRef::from_array_view(features.view())?];
let ort_outs = self.session.run(inputs)?;
let ort_out = ort_outs
.get("embs")
.context("Output tensor not found")?
- .try_extract_tensor::<f32>()
+ .try_extract_array::<f32>()
.context("Failed to extract tensor")?;
// Collect the tensor data into a Vec to own it
diff --git a/crates/screenpipe-audio/src/speaker/mod.rs b/crates/screenpipe-audio/src/speaker/mod.rs
index 3c310dbc5..d2a104c12 100644
--- a/crates/screenpipe-audio/src/speaker/mod.rs
+++ b/crates/screenpipe-audio/src/speaker/mod.rs
@@ -3,11 +3,10 @@ pub mod embedding;
use std::path::Path;
use anyhow::Result;
-use ort::{GraphOptimizationLevel, Session};
-pub fn create_session<P: AsRef<Path>>(path: P) -> Result<Session> {
- let session = Session::builder()?
- .with_optimization_level(GraphOptimizationLevel::Level3)?
+pub fn create_session<P: AsRef<Path>>(path: P) -> Result<ort::session::Session> {
+ let session = ort::session::Session::builder()?
+ .with_optimization_level(ort::session::builder::GraphOptimizationLevel::Level3)?
.with_intra_threads(1)?
.with_inter_threads(1)?
.commit_from_file(path.as_ref())?;
diff --git a/crates/screenpipe-audio/src/speaker/segment.rs b/crates/screenpipe-audio/src/speaker/segment.rs
index 30fc852f6..833a0ac45 100644
--- a/crates/screenpipe-audio/src/speaker/segment.rs
+++ b/crates/screenpipe-audio/src/speaker/segment.rs
@@ -121,7 +121,7 @@ fn handle_new_segment(
pub struct SegmentIterator {
samples: Vec<f32>,
sample_rate: u32,
- session: ort::Session,
+ session: ort::session::Session,
embedding_extractor: Arc<Mutex<EmbeddingExtractor>>,
embedding_manager: Arc<Mutex<EmbeddingManager>>,
current_position: usize,
@@ -176,7 +176,7 @@ impl SegmentIterator {
.insert_axis(Axis(1))
.to_owned();
- let inputs = ort::inputs![array].context("Failed to prepare inputs")?;
+ let inputs = ort::inputs![ort::value::TensorRef::from_array_view(array.view())?];
let ort_outs = self
.session
.run(inputs)
@@ -184,7 +184,7 @@ impl SegmentIterator {
let ort_out = ort_outs.get("output").context("Output tensor not found")?;
let ort_out = ort_out
- .try_extract_tensor::<f32>()
+ .try_extract_array::<f32>()
.context("Failed to extract tensor")?;
let mut result = None;