blazen_audio_piper/lib.rs
1//! Local text-to-speech backend for Blazen using [`Piper`](https://github.com/rhasspy/piper).
2//!
3//! This crate provides fully local, offline TTS synthesis via Piper voice
4//! models running on ONNX Runtime, with no API keys required.
5//!
6//! When used through `blazen-llm` with the `piper` feature flag, this
7//! crate's [`PiperProvider`] will implement `blazen_llm::AudioGeneration`.
8//!
9//! # Feature flags
10//!
11//! | Feature | Description |
12//! |----------|--------------------------------------------------|
13//! | `engine` | Links the ONNX Runtime backend for Piper |
14//!
15//! Without the `engine` feature the crate compiles (options struct + stub
16//! provider) but cannot actually run synthesis. This keeps workspace builds
17//! fast when the heavy native dependencies are not needed.
18
19mod options;
20mod provider;
21
22pub use options::PiperOptions;
23pub use provider::{PiperError, PiperProvider};