feat(voice): add async selectable summaries
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user