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.
This commit is contained in:
Sulkta 2026-05-13 16:45:04 -07:00
parent a291f44a10
commit 1f2dd40105
6 changed files with 388 additions and 0 deletions

View file

@ -30,3 +30,4 @@ uuid = { version = "1", features = ["v4", "serde"] }
regex = "1"
async-trait = "0.1"
maud = "0.27"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }