polyvoice 0.5.1

Speaker diarization library for Rust — online and offline, ONNX-powered, ecosystem-agnostic
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"
name = "polyvoice"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Speaker diarization library for Rust — online and offline, ONNX-powered, ecosystem-agnostic"
readme = "README.md"
keywords = [
    "diarization",
    "speaker",
    "onnx",
    "stt",
    "voice",
]
categories = [
    "multimedia::audio",
    "science",
]
license = "MIT"
repository = "https://github.com/ekhodzitsky/polyvoice"

[features]
cli = [
    "onnx",
    "dep:clap",
    "dep:ureq",
    "dep:dirs",
]
default = []
ffi = []
onnx = ["dep:ort"]

[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 = "offline"
path = "examples/offline.rs"

[[example]]
name = "online"
path = "examples/online.rs"

[[example]]
name = "onnx"
path = "examples/onnx.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "loom_pool"
path = "tests/loom_pool.rs"

[[test]]
name = "property"
path = "tests/property.rs"

[[test]]
name = "test_ahc"
path = "tests/test_ahc.rs"

[[test]]
name = "test_e2e_onnx"
path = "tests/test_e2e_onnx.rs"

[[test]]
name = "test_pipeline"
path = "tests/test_pipeline.rs"

[[test]]
name = "test_wav"
path = "tests/test_wav.rs"

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

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

[[bench]]
name = "diarization"
path = "benches/diarization.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.hound]
version = "3.5"

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

[dependencies.num-complex]
version = "0.4"

[dependencies.ort]
version = "2.0.0-rc.12"
optional = true

[dependencies.realfft]
version = "3.5"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.ureq]
version = "3"
optional = true

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

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

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

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

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

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

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

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