[package]
edition = "2024"
rust-version = "1.85"
name = "silero"
version = "0.2.0"
build = "build.rs"
include = [
"Cargo.toml",
"README.md",
"THIRD_PARTY_NOTICES.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"models/silero_vad.onnx",
"src/**",
"build.rs",
"examples/**",
"tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Production-oriented Rust wrapper for the Silero VAD ONNX model."
homepage = "https://github.com/Findit-AI/silero"
documentation = "https://docs.rs/silero"
readme = "README.md"
keywords = [
"vad",
"voice-detection",
"silero-vad",
"speech",
"onnx",
]
categories = [
"multimedia::audio",
"science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Findit-AI/silero"
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
bundled = []
default = ["bundled"]
serde = [
"dep:serde",
"dep:humantime-serde",
]
[lib]
name = "silero"
path = "src/lib.rs"
[[example]]
name = "detect_file"
path = "examples/detect_file.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[dependencies.humantime-serde]
version = "1"
optional = true
[dependencies.ort]
version = "2.0.0-rc.12"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.hound]
version = "3"
[dev-dependencies.serde_json]
version = "1"
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(all_tests)",
"cfg(tarpaulin)",
]