Skip to main content

atomr_agents_tts_audio/
lib.rs

1//! Output-side audio I/O for atomr-agents text-to-speech.
2//!
3//! Mirrors `atomr-agents-stt-audio` for the inverse direction:
4//! PCM -> container encoders, and (under `speaker`) a `cpal`-based
5//! speaker-output stream that mirrors `MicCaptureSession`.
6//!
7//! Two independent feature surfaces:
8//!
9//! - `encode-wav` (default-on): `hound`-backed WAV writer.
10//! - `speaker` (default-off, needs `libasound2-dev` on Linux):
11//!   cpal output stream with a bounded mpsc producer queue.
12//!
13//! Reuses `AudioFormat`, `PcmBuffer`, `SampleType` from
14//! `stt-core` so the two stacks share one vocabulary.
15
16#[cfg(feature = "encode-wav")]
17pub mod encode;
18
19#[cfg(feature = "speaker")]
20pub mod speaker;
21
22#[cfg(feature = "speaker")]
23pub mod pump;