Built-in index and pool resolver, and integrate resolution with speaker persistence and the TUI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user