Files
settled-reach/server/src/voice/mod.rs
T
jpmschweitzerandClaude Opus 4.6 fafa1c49b8 feat(voice): stub voice cache lookup for behavior text (Phase 3)
Add lookup.rs with voiced_behavior() — ready to wire into a behavior-serving
system once one exists (Q-058). Tell behaviors always passthrough (never
re-voiced). Cache miss returns base text (graceful degradation).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 17:13:15 +01:00

20 lines
799 B
Rust

//! Voice pipeline integration (D-138, Spike 2).
//!
//! Translates culture-neutral semantic base text into character-voiced output
//! via an LLM re-voicing pipeline. The pipeline is a background runtime
//! enhancement — the game is complete and functional without it.
//!
//! ## Components
//!
//! - `prompt_builder` — composition engine: NPC data + culture + tell state → prompt string
//! - `cache` — MessagePack voice cache (store/retrieve, length-gated variants)
//! - `queue` — crossbeam work queue with priority + backpressure
//! - `worker` — inference worker pool (dynamic scaling, owns sr-voice HTTP clients)
//! - `hardware` — hardware detection + dynamic sr-voice instance management
pub mod cache;
pub mod lookup;
pub mod prompt_builder;
pub mod queue;
pub mod worker;