voxudio 0.2.0

A real-time audio processing library with ONNX runtime support
Documentation
//! # Voxudio
//!
//! `voxudio` is a real-time audio processing library with ONNX runtime support.
//! It provides a set of tools for audio device management, signal processing,
//! and machine learning model integration for audio applications.
//!
//! ## Features
//!
//! - Audio device enumeration and management
//! - Real-time audio processing capabilities
//! - ONNX model integration for audio machine learning tasks
//! - OPUS audio codec support (encoding/decoding)
//! - Cross-platform support
//!
//! ## Example
//!
//! ```rust,no_run
//! // Speaker embedding extraction example
//! use voxudio::*;
//! use anyhow::Result;
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//!     // Initialize voice activity detector and speaker embedding extractor
//!     let mut vad = VoiceActivityDetector::new("checkpoint/voice_activity_detector.onnx")?;
//!     let mut see = SpeakerEmbeddingExtractor::new("checkpoint/speaker_embedding_extractor.onnx")?;
//!
//!     // Load audio file
//!     let (audio, channels) = load_audio::<22050, _>("asset/sample.wav", false).await?;
//!
//!     // Detect speech segments
//!     let vad_audio = vad.retain_speech_only::<22050>(&audio, channels).await?;
//!
//!     // Extract speaker embedding
//!     let embedding = see.extract(&vad_audio, channels).await?;
//!     println!("Extracted embedding: {:?}", embedding);
//!
//!     Ok(())
//! }
//! ```
//! See more from `examples`.
//!
//! ## License
//!
//! This project is licensed under the Apache License, Version 2.0.

#[cfg(feature = "device")]
mod device;
mod error;
#[cfg(feature = "model")]
mod model;
#[cfg(feature = "opus")]
mod opus;
mod utils;

#[cfg(feature = "device")]
pub use device::*;
#[cfg(feature = "model")]
pub use model::*;
#[cfg(feature = "opus")]
pub use opus::*;
pub use {error::*, utils::*};