skald/skald-core/src/lib.rs
Sulkta 1f2dd40105 narrate: F5-TTS HTTP client + skald narrate CLI
skald-core::narrate ships a thin reqwest client + voice DB access
(get_by_name, get_default, get_by_id). The boundary is the f5-tts
container's purpose-built FastAPI sidecar (python lives there
because torch + transformers + safetensors do); skald never touches
python.

CLI: skald narrate --chapter <uuid> [--voice slug] [--speed 1.0].
Voice resolution: --voice flag → story.preferred_voice_id → system
default. Persists narration_runs row (engine='f5-tts', engine_version
pinned, status: running → succeeded|failed). Output path stored is
the f5-tts container's view (/audio/<story>-<n>-<run>.wav); web
playback wiring deferred.
2026-05-13 16:45:04 -07:00

18 lines
559 B
Rust

//! Skald's shared kernel.
//!
//! Database schema, row types, markdown ingest, and (later) context
//! assembly for LLM calls. The story-independence rule: nothing in
//! this crate knows about any specific story. Every story is rows.
pub mod authors;
pub mod config;
pub mod context;
pub mod db;
pub mod forge;
pub mod ingest;
pub mod models;
pub mod narrate;
/// Embeds the workspace `migrations/` directory at compile time.
/// Run via `MIGRATOR.run(&pool).await` at boot.
pub static MIGRATOR: sqlx::migrate::Migrator = sqlx::migrate!("../migrations");