feat #14740: choose the language when starting a transcription

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-18 11:37:24 +01:00
co-authored by Claude Opus 5.5
parent 79e31d5331
commit 48000f47eb
4 changed files with 71 additions and 16 deletions
+7 -6
View File
@@ -250,16 +250,17 @@ pub async fn discard_call(app: AppHandle, id: CallId) -> CmdResult<()> {
}
/// Transkribieren in the end-of-call prompt: starts processing in the
/// background and returns at once; the call leaves the prompt.
/// background in the chosen `language` and returns at once; the call
/// leaves the prompt.
#[tauri::command]
pub async fn transcribe_call(app: AppHandle, id: CallId) -> CmdResult<()> {
blocking(app, move |app| processing::start(app, id, false)).await
pub async fn transcribe_call(app: AppHandle, id: CallId, language: String) -> CmdResult<()> {
blocking(app, move |app| processing::start(app, id, false, language)).await
}
/// Processes a failed (or still undecided) call again.
/// Processes a failed (or still undecided) call again, in `language`.
#[tauri::command]
pub async fn retry_call(app: AppHandle, id: CallId) -> CmdResult<()> {
blocking(app, move |app| processing::start(app, id, true)).await
pub async fn retry_call(app: AppHandle, id: CallId, language: String) -> CmdResult<()> {
blocking(app, move |app| processing::start(app, id, true, language)).await
}
/// After a call left the prompt queue: hides the prompt if no call waits