Skip to content

Commit 97ebf6f

Browse files
authored
Add local diarization crate (#827)
1 parent a1184aa commit 97ebf6f

File tree

8 files changed

+113184
-2
lines changed

8 files changed

+113184
-2
lines changed

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pyannote/Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@ version = "0.1.0"
44
edition = "2021"
55

66
[features]
7-
default = ["cloud"]
7+
default = ["local"]
88
cloud = ["reqwest", "url"]
9+
local = ["hypr-onnx", "knf-rs"]
10+
knf-rs = ["dep:knf-rs"]
911

1012
[dependencies]
1113
reqwest = { workspace = true, features = ["json"], optional = true }
1214
url = { workspace = true, optional = true }
1315

16+
hypr-onnx = { workspace = true, optional = true }
17+
knf-rs = { git = "https://github.com/thewh1teagle/pyannote-rs", rev = "e3abad6", package = "knf-rs", optional = true }
18+
1419
anyhow = { workspace = true }
1520
thiserror = { workspace = true }
1621

1722
serde = { workspace = true, features = ["derive"] }
1823
specta = { workspace = true, features = ["derive"] }
1924

2025
[dev-dependencies]
21-
hypr-data = { path = "../../crates/data", package = "data" }
26+
hypr-data = { workspace = true }
2227

2328
approx = { workspace = true }
2429
hound = { workspace = true }

crates/pyannote/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
#[cfg(feature = "cloud")]
22
pub mod cloud;
3+
4+
#[cfg(feature = "local")]
5+
pub mod local;

0 commit comments

Comments
 (0)