From c26dc33a0623c71fa4a0be32880758a27d2c829e Mon Sep 17 00:00:00 2001 From: latentdream Date: Thu, 3 Oct 2024 21:40:52 -0400 Subject: [PATCH] chore(lang): chinese support | outdated file --- src-tauri/src/audio/processor_sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/audio/processor_sync.rs b/src-tauri/src/audio/processor_sync.rs index 6142de8..ad4d954 100644 --- a/src-tauri/src/audio/processor_sync.rs +++ b/src-tauri/src/audio/processor_sync.rs @@ -85,7 +85,7 @@ fn transcribe_with_assemblyai(audio_path: &String, language: Option) -> match language.to_lowercase().as_str() { "en_us" | "en" | "english" | "anglais" => "en_us".to_string(), "fr" | "french" | "francais" | "français" => "fr".to_string(), - "zh" | "chinese" | "中文" | "français" => "fr".to_string(), + "zh" | "chinese" | "中文" => "zh".to_string(), _ => "en_us".to_string() } }