feat(voice): add async selectable summaries

This commit is contained in:
zhangheng
2026-07-22 19:13:55 +08:00
parent 108e280b3f
commit 0a2509d923
17 changed files with 1530 additions and 159 deletions

View File

@@ -5,6 +5,7 @@ mod recording_routes;
mod routes;
mod speech;
mod summary;
mod summary_worker;
mod transcription_worker;
use std::{path::PathBuf, sync::Arc, time::Duration};
@@ -96,8 +97,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
};
if let Some(pool) = state.pool.clone() {
if speech.configured() {
transcription_worker::spawn(pool, speech.clone(), log_context.clone());
transcription_worker::spawn(pool.clone(), speech.clone(), log_context.clone());
}
summary_worker::spawn(pool, state.summary.clone(), log_context.clone());
}
let app = build_app(
state,