polyvoice 0.7.0

Speaker diarization for Rust — who spoke when. ONNX-powered: Silero VAD, WeSpeaker embeddings, Pyannote segmentation, K-means/AHC clustering, overlap detection.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "polyvoice"
version = "0.7.0"
build = false
include = [
    "src/**/*.rs",
    "src/models/manifest.toml",
    "src/models/signing.pub.base64",
    "benches/der_ami.rs",
    "examples/hybrid_benchmark.rs",
    "include/*.h",
    "/Cargo.toml",
    "/README.md",
    "/LICENSE",
    "/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Speaker diarization for Rust — who spoke when. ONNX-powered: Silero VAD, WeSpeaker embeddings, Pyannote segmentation, K-means/AHC clustering, overlap detection."
readme = "README.md"
keywords = [
    "diarization",
    "speaker",
    "onnx",
    "audio",
    "streaming",
]
categories = [
    "multimedia::audio",
    "science",
]
license = "MIT"
repository = "https://github.com/ekhodzitsky/polyvoice"

[package.metadata.release]
sign-tag = true
tag-name = "v{{version}}"
pre-release-commit-message = "chore(release): prepare for {{version}}"
tag-message = "chore(release): {{version}}"

[[package.metadata.release.pre-release-replacements]]
file = "python/Cargo.toml"
search = '^version = ".*"'
replace = 'version = "{{version}}"'

[[package.metadata.release.pre-release-replacements]]
file = "python/pyproject.toml"
search = '^version = ".*"'
replace = 'version = "{{version}}"'

[[package.metadata.release.pre-release-replacements]]
file = "tests/cli_smoke_test.rs"
search = 'polyvoice [0-9]+\.[0-9]+\.[0-9]+'
replace = "polyvoice {{version}}"

[package.metadata.docs.rs]
features = [
    "onnx",
    "segmentation",
    "embedder",
    "clusterer",
    "resegmentation",
    "download",
    "spectral",
]

[features]
cli = [
    "onnx",
    "download",
    "segmentation",
    "embedder",
    "clusterer",
    "resegmentation",
    "dep:clap",
]
clusterer = []
coreml = [
    "onnx",
    "ort/coreml",
]
default = []
download = [
    "dep:ureq",
    "dep:dirs",
    "dep:toml",
    "dep:sha2",
    "dep:minisign-verify",
]
embedder = []
ffi = [
    "onnx",
    "download",
    "segmentation",
    "embedder",
    "clusterer",
    "resegmentation",
]
nnapi = [
    "onnx",
    "ort/nnapi",
]
onnx = ["dep:ort"]
profile-all = [
    "profile-mobile",
    "profile-balanced",
]
profile-balanced = []
profile-mobile = []
resegmentation = []
segmentation = []
spectral = ["dep:faer"]
xnnpack = [
    "onnx",
    "ort/xnnpack",
]

[lib]
name = "polyvoice"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "polyvoice"
path = "src/bin/polyvoice.rs"
required-features = ["cli"]

[[bin]]
name = "polyvoice-bench"
path = "src/bin/polyvoice-bench.rs"
required-features = ["cli"]

[[example]]
name = "hybrid_benchmark"
path = "examples/hybrid_benchmark.rs"
required-features = [
    "onnx",
    "segmentation",
    "embedder",
    "clusterer",
    "resegmentation",
    "download",
]

[[bench]]
name = "der_ami"
path = "benches/der_ami.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.dirs]
version = "6"
optional = true

[dependencies.faer]
version = "0.24.0"
features = ["std"]
optional = true

[dependencies.fastrand]
version = "2.4.1"

[dependencies.hound]
version = "3.5"

[dependencies.minisign-verify]
version = "0.2.5"
optional = true

[dependencies.ndarray]
version = "0.17"
default-features = false

[dependencies.ort]
version = "2.0.0-rc.12"
features = [
    "std",
    "ndarray",
    "tracing",
    "download-binaries",
    "tls-rustls",
    "copy-dylibs",
]
optional = true
default-features = false

[dependencies.realfft]
version = "3.5"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "1"

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.ureq]
version = "3"
features = ["rustls"]
optional = true
default-features = false

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.hound]
version = "3.5"

[dev-dependencies.insta]
version = "1.47.2"
features = ["json"]

[dev-dependencies.loom]
version = "0.7.2"

[dev-dependencies.mockall]
version = "0.13"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[lints.clippy]
unwrap_used = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(loom)",
    "cfg(kani)",
]

[profile.release]
lto = true
codegen-units = 1
strip = true