ContentType::Factual bypasses LLM for fact-bearing lines (numbers, denials). Observer enrichment systems rewrite dialogue/conversation text with voiced versions before snapshot assembly. Friendly and RoutineDeviation tells get concrete surface-pattern examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
831 B
Rust
22 lines
831 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 (each worker owns a piped sr-voice child process)
|
|
//! - `hardware` — hardware detection + dynamic scaling decisions
|
|
|
|
pub mod cache;
|
|
pub mod hardware;
|
|
pub mod integration;
|
|
pub mod lookup;
|
|
pub mod prompt_builder;
|
|
pub mod queue;
|
|
pub mod worker;
|