silero 0.3.0

Production-oriented Rust wrapper for the Silero VAD ONNX model.
Documentation
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, allow(unused_attributes))]
#![deny(missing_docs)]
#![forbid(unsafe_code)]

mod detector;
mod error;
mod options;
mod session;
mod stream;

pub use detector::{SpeechDetector, SpeechSegment, SpeechSegmenter, detect_speech};
pub use error::{Error, Result};
pub use options::{GraphOptimizationLevel, SampleRate, SessionOptions, SpeechOptions};

/// Version string of the `silero` crate (`CARGO_PKG_VERSION`).
///
/// Exposed so out-of-tree harnesses (e.g. the parity runner) can record
/// the exact silero version under test rather than the harness binary's
/// own version.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
#[cfg(feature = "bundled")]
#[cfg_attr(docsrs, doc(cfg(feature = "bundled")))]
pub use session::BUNDLED_MODEL;
pub use session::{BatchInput, Session};
pub use stream::StreamState;