Skip to main content

aria_wake/
lib.rs

1//! Wake-word detection with openWakeWord and livekit-wakeword models.
2//!
3//! Each detector is a module behind a Cargo feature, and none is on by
4//! default: `openwakeword` and `livekit`. Both implement `aria-kit`'s
5//! `WakeWordDetector`.
6
7#![cfg_attr(docsrs, feature(doc_cfg))]
8
9#[cfg(all(
10    any(feature = "livekit", feature = "openwakeword"),
11    not(target_family = "wasm")
12))]
13mod frontend;
14#[cfg(all(
15    any(feature = "livekit", feature = "openwakeword"),
16    not(target_family = "wasm")
17))]
18pub use frontend::{Config, ConfigError, Error, ModelFiles};
19
20#[cfg(all(feature = "livekit", not(target_family = "wasm")))]
21pub mod livekit;
22#[cfg(all(feature = "openwakeword", not(target_family = "wasm")))]
23pub mod openwakeword;