Built-in index and pool resolver, and integrate resolution with speaker persistence and the TUI

This commit is contained in:
pleb
2026-07-29 10:56:38 -07:00
parent b4e622c79b
commit d1c83e8a7d
4 changed files with 426 additions and 31 deletions
+3
View File
@@ -2,6 +2,7 @@ mod config;
mod eq_discovery;
mod events;
mod kokoro;
mod npc_voices;
mod speakers;
mod tui;
mod workers;
@@ -65,6 +66,7 @@ async fn main() -> Result<()> {
config.kokoro_url = url;
}
let _ = npc_voices::builtin_index();
let speakers = speakers::SpeakerStore::load()?;
let (worker_sender, worker_receiver) = mpsc::channel::<WorkerEvent>();
let audio_sender = spawn_audio_worker(config.volume, worker_sender.clone());
@@ -166,6 +168,7 @@ fn process_worker_event(
speaker.clone(),
&app.voices,
app.current_zone.clone(),
npc_voices::builtin_index(),
) {
app.speakers.save()?;
if synthesis_sender