Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix: prevent custom-word correction from losing transcriptions

CJ Pais2203a826c62a
diff --git a/src-tauri/src/audio_toolkit/text.rs b/src-tauri/src/audio_toolkit/text.rs
index 069f17ee..069cf0e5 100644
--- a/src-tauri/src/audio_toolkit/text.rs
+++ b/src-tauri/src/audio_toolkit/text.rs
@@ -31,7 +31,11 @@ fn build_custom_word_match_keys(word: &str, word_index: usize) -> Vec<CustomWord
let primary_key = build_match_key(word);
let mut keys = Vec::with_capacity(2);
- if !primary_key.is_empty() {
+ // The fallback matcher is intentionally limited to ASCII terms. Its
+ // whitespace tokenization and Soundex scoring are not suitable for CJK
+ // scripts. Unicode custom words remain available to models that accept
+ // them as native decode prompts; they are simply skipped by this fallback.
+ if is_supported_fuzzy_key(&primary_key) {
keys.push(CustomWordMatchKey {
word_index,
key: primary_key.clone(),
@@ -40,7 +44,7 @@ fn build_custom_word_match_keys(word: &str, word_index: usize) -> Vec<CustomWord
if word.contains('&') {
let expanded_key = build_match_key(&word.replace('&', " and "));
- if !expanded_key.is_empty() && expanded_key != primary_key {
+ if is_supported_fuzzy_key(&expanded_key) && expanded_key != primary_key {
keys.push(CustomWordMatchKey {
word_index,
key: expanded_key,
@@ -51,6 +55,14 @@ fn build_custom_word_match_keys(word: &str, word_index: usize) -> Vec<CustomWord
keys
}
+fn is_supported_fuzzy_key(key: &str) -> bool {
+ !key.is_empty() && key.chars().all(|c| c.is_ascii_alphanumeric())
+}
+
+fn supports_soundex(key: &str) -> bool {
+ !key.is_empty() && key.chars().all(|c| c.is_ascii_alphabetic())
+}
+
/// Finds the best matching custom word for a candidate string
///
/// Uses Levenshtein distance and Soundex phonetic matching to find
@@ -70,7 +82,7 @@ fn find_best_match<'a>(
custom_word_match_keys: &[CustomWordMatchKey],
threshold: f64,
) -> Option<(&'a String, f64)> {
- if candidate.is_empty() || candidate.len() > 50 {
+ if !is_supported_fuzzy_key(candidate) || candidate.chars().count() > 50 {
return None;
}
@@ -81,8 +93,10 @@ fn find_best_match<'a>(
// Skip if lengths are too different (optimization + prevents over-matching)
// Use percentage-based check: max 25% length difference (prevents n-grams from
// matching significantly shorter custom words, e.g., "openaigpt" vs "openai")
- let len_diff = (candidate.len() as i32 - custom_word_key.key.len() as i32).abs() as f64;
- let max_len = candidate.len().max(custom_word_key.key.len()) as f64;
+ let candidate_len = candidate.chars().count();
+ let custom_word_len = custom_word_key.key.chars().count();
+ let len_diff = candidate_len.abs_diff(custom_word_len) as f64;
+ let max_len = candidate_len.max(custom_word_len) as f64;
let max_allowed_diff = (max_len * 0.25).max(2.0); // At least 2 chars difference allowed
if len_diff > max_allowed_diff {
continue;
@@ -90,15 +104,17 @@ fn find_best_match<'a>(
// Calculate Levenshtein distance (normalized by length)
let levenshtein_dist = levenshtein(candidate, &custom_word_key.key);
- let max_len = candidate.len().max(custom_word_key.key.len()) as f64;
let levenshtein_score = if max_len > 0.0 {
levenshtein_dist as f64 / max_len
} else {
1.0
};
- // Calculate phonetic similarity using Soundex
- let phonetic_match = soundex(candidate, &custom_word_key.key);
+ // Soundex is an English/ASCII phonetic algorithm. Numeric terms can
+ // still use edit distance, but must not receive a phonetic boost.
+ let phonetic_match = supports_soundex(candidate)
+ && supports_soundex(&custom_word_key.key)
+ && soundex(candidate, &custom_word_key.key);
// Combine scores: favor phonetic matches, but also consider string similarity
let combined_score = if phonetic_match {
@@ -149,35 +165,52 @@ pub fn apply_custom_words(text: &str, custom_words: &[String], threshold: f64) -
let mut i = 0;
while i < words.len() {
- let mut matched = false;
+ let mut best_match: Option<(usize, &String, f64)> = None;
- // Try n-grams from longest (3) to shortest (1) - greedy matching
+ // Consider n-grams up to three words and choose the closest match. A
+ // longest-first match can consume a following ordinary word when both
+ // candidates happen to share a Soundex code (for example,
+ // "Charge B, che" matching "ChargeBee").
for n in (1..=3).rev() {
if i + n > words.len() {
continue;
}
let ngram_words = &words[i..i + n];
+ // Do not consume across a punctuation boundary. In
+ // "Charge B, che", the comma closes the candidate at "B,".
+ if ngram_words[..n.saturating_sub(1)]
+ .iter()
+ .any(|word| !extract_punctuation(word).1.is_empty())
+ {
+ continue;
+ }
let ngram = build_ngram(ngram_words);
- if let Some((replacement, _score)) =
+ if let Some((replacement, score)) =
find_best_match(&ngram, custom_words, &custom_word_match_keys, threshold)
{
- // Extract punctuation from first and last words of the n-gram
- let (prefix, _) = extract_punctuation(ngram_words[0]);
- let (_, suffix) = extract_punctuation(ngram_words[n - 1]);
-
- // Preserve case from first word
- let corrected = preserve_case_pattern(ngram_words[0], replacement);
-
- result.push(format!("{}{}{}", prefix, corrected, suffix));
- i += n;
- matched = true;
- break;
+ let is_better = best_match
+ .as_ref()
+ .is_none_or(|(_, _, best_score)| score < *best_score);
+ if is_better {
+ best_match = Some((n, replacement, score));
+ }
}
}
- if !matched {
+ if let Some((n, replacement, _)) = best_match {
+ let ngram_words = &words[i..i + n];
+ // Extract punctuation from first and last words of the n-gram.
+ let (prefix, _) = extract_punctuation(ngram_words[0]);
+ let (_, suffix) = extract_punctuation(ngram_words[n - 1]);
+
+ // Preserve case from first word.
+ let corrected = preserve_case_pattern(ngram_words[0], replacement);
+
+ result.push(format!("{}{}{}", prefix, corrected, suffix));
+ i += n;
+ } else {
result.push(words[i].to_string());
i += 1;
}
@@ -203,12 +236,19 @@ fn preserve_case_pattern(original: &str, replacement: &str) -> String {
/// Extracts punctuation prefix and suffix from a word
fn extract_punctuation(word: &str) -> (&str, &str) {
- let prefix_end = word.chars().take_while(|c| !c.is_alphanumeric()).count();
+ // String slices use byte offsets. Derive both boundaries from char_indices
+ // so multibyte punctuation such as `。` and `「」` can never be split.
+ let prefix_end = word
+ .char_indices()
+ .find(|(_, c)| c.is_alphanumeric())
+ .map(|(index, _)| index)
+ .unwrap_or(word.len());
let suffix_start = word
.char_indices()
.rev()
- .take_while(|(_, c)| !c.is_alphanumeric())
- .count();
+ .find(|(_, c)| c.is_alphanumeric())
+ .map(|(index, c)| index + c.len_utf8())
+ .unwrap_or(0);
let prefix = if prefix_end > 0 {
&word[..prefix_end]
@@ -216,8 +256,8 @@ fn extract_punctuation(word: &str) -> (&str, &str) {
""
};
- let suffix = if suffix_start > 0 {
- &word[word.len() - suffix_start..]
+ let suffix = if suffix_start < word.len() {
+ &word[suffix_start..]
} else {
""
};
@@ -384,6 +424,13 @@ mod tests {
assert_eq!(extract_punctuation("...hello..."), ("...", "..."));
}
+ #[test]
+ fn test_extract_punctuation_uses_unicode_boundaries() {
+ assert_eq!(extract_punctuation("你好。"), ("", "。"));
+ assert_eq!(extract_punctuation("「你好」"), ("「", "」"));
+ assert_eq!(extract_punctuation("你好!"), ("", "!"));
+ }
+
#[test]
fn test_empty_custom_words() {
let text = "hello world";
@@ -544,7 +591,7 @@ mod tests {
let text = "il cui nome è Charge B, che permette";
let custom_words = vec!["ChargeBee".to_string()];
let result = apply_custom_words(text, &custom_words, 0.5);
- assert!(result.contains("ChargeBee,"));
+ assert!(result.contains("ChargeBee,"), "unexpected result: {result}");
assert!(!result.contains("Charge B"));
}
@@ -619,4 +666,20 @@ mod tests {
let result = apply_custom_words(text, &custom_words, 0.18);
assert_eq!(result, "send it to R&D for review");
}
+
+ #[test]
+ fn test_apply_custom_words_handles_unicode_punctuation() {
+ let text = "「Handee。」";
+ let custom_words = vec!["Handy".to_string()];
+ let result = apply_custom_words(text, &custom_words, 0.5);
+ assert_eq!(result, "「Handy。」");
+ }
+
+ #[test]
+ fn test_apply_custom_words_skips_cjk_fuzzy_matching() {
+ let text = "你好。";
+ let custom_words = vec!["你号".to_string()];
+ let result = apply_custom_words(text, &custom_words, 1.0);
+ assert_eq!(result, text);
+ }
}
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 31c0cae7..9d931216 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -330,6 +330,44 @@ fn show_main_window_command(app: AppHandle) -> Result<(), String> {
Ok(())
}
+/// Convert an unexpected panic on the headless worker into a normal CLI
+/// failure. Without this guard the Tauri event loop remains alive after the
+/// worker exits, leaving `--transcribe-file` hung indefinitely.
+fn run_headless_guarded<F>(operation: F) -> i32
+where
+ F: FnOnce() -> i32,
+{
+ match std::panic::catch_unwind(std::panic::AssertUnwindSafe(operation)) {
+ Ok(code) => code,
+ Err(payload) => {
+ let message = if let Some(message) = payload.downcast_ref::<&str>() {
+ (*message).to_string()
+ } else if let Some(message) = payload.downcast_ref::<String>() {
+ message.clone()
+ } else {
+ "unknown panic".to_string()
+ };
+ eprintln!("error: headless transcription panicked: {message}");
+ 1
+ }
+ }
+}
+
+#[cfg(test)]
+mod headless_guard_tests {
+ use super::run_headless_guarded;
+
+ #[test]
+ fn preserves_normal_exit_codes() {
+ assert_eq!(run_headless_guarded(|| 2), 2);
+ }
+
+ #[test]
+ fn converts_worker_panics_to_runtime_failures() {
+ assert_eq!(run_headless_guarded(|| panic!("simulated failure")), 1);
+ }
+}
+
/// Headless one-shot transcription for the `--transcribe-file` / `--list-devices`
/// path. Drives the same `TranscriptionManager::transcribe` the app uses; no
/// mic, no VAD, no download. Returns a process exit code (0 ok, 1 runtime
@@ -780,7 +818,7 @@ pub fn run(cli_args: CliArgs) {
let handle = app_handle.clone();
let args = cli_args.clone();
std::thread::spawn(move || {
- let code = run_headless_transcription(&handle, &args);
+ let code = run_headless_guarded(|| run_headless_transcription(&handle, &args));
// Drop the loaded engine before teardown: ggml-metal's global
// device free asserts (SIGABRT) if a model's Metal resources
// are still alive at C++ static-destructor time.
diff --git a/src-tauri/src/managers/transcription.rs b/src-tauri/src/managers/transcription.rs
index c605419f..8bf7bd58 100644
--- a/src-tauri/src/managers/transcription.rs
+++ b/src-tauri/src/managers/transcription.rs
@@ -36,6 +36,16 @@ use transcribe_rs::{
const STREAM_PERF_LOG_INTERVAL: Duration = Duration::from_secs(5);
const STREAM_FINALIZE_REPLY_TIMEOUT: Duration = Duration::from_secs(30);
+fn panic_payload_message(payload: &(dyn std::any::Any + Send)) -> String {
+ if let Some(message) = payload.downcast_ref::<&str>() {
+ (*message).to_string()
+ } else if let Some(message) = payload.downcast_ref::<String>() {
+ message.clone()
+ } else {
+ "unknown panic".to_string()
+ }
+}
+
#[derive(Clone, Debug, Serialize)]
pub struct ModelStateEvent {
pub event_type: String,
@@ -1350,13 +1360,7 @@ impl TranscriptionManager {
Err(panic_payload) => {
// Engine panicked — do NOT put it back (it's in an unknown state).
// The engine is dropped here, effectively unloading it.
- let panic_msg = if let Some(s) = panic_payload.downcast_ref::<&str>() {
- s.to_string()
- } else if let Some(s) = panic_payload.downcast_ref::<String>() {
- s.clone()
- } else {
- "unknown panic".to_string()
- };
+ let panic_msg = panic_payload_message(panic_payload.as_ref());
error!(
"Transcription engine panicked: {}. Model has been unloaded.",
panic_msg
@@ -1606,21 +1610,43 @@ fn post_process_transcription_text(
settings: &AppSettings,
custom_words_already_prompted: bool,
) -> String {
- let corrected = if !settings.custom_words.is_empty() && !custom_words_already_prompted {
- apply_custom_words(
- &raw,
- &settings.custom_words,
- settings.word_correction_threshold,
+ fail_open_text_transform(raw, |raw| {
+ let corrected = if !settings.custom_words.is_empty() && !custom_words_already_prompted {
+ apply_custom_words(
+ &raw,
+ &settings.custom_words,
+ settings.word_correction_threshold,
+ )
+ } else {
+ raw
+ };
+
+ filter_transcription_output(
+ &corrected,
+ &settings.app_language,
+ &settings.custom_filler_words,
)
- } else {
- raw
- };
+ })
+}
- filter_transcription_output(
- &corrected,
- &settings.app_language,
- &settings.custom_filler_words,
- )
+/// Optional text cleanup must never discard a successful model result. The
+/// transform is pure and owns its input, so recovering the untouched text is
+/// safe even if a bug in custom-word or filler filtering unwinds.
+fn fail_open_text_transform<F>(raw: String, transform: F) -> String
+where
+ F: FnOnce(String) -> String,
+{
+ let fallback = raw.clone();
+ match catch_unwind(AssertUnwindSafe(|| transform(raw))) {
+ Ok(processed) => processed,
+ Err(payload) => {
+ error!(
+ "Optional transcription text post-processing panicked: {}; using the raw transcription",
+ panic_payload_message(payload.as_ref())
+ );
+ fallback
+ }
+ }
}
/// Decide a transcribe-cpp run's task + translation target from settings.
@@ -1895,6 +1921,16 @@ mod tests {
codes.iter().map(|code| (*code).to_string()).collect()
}
+ #[test]
+ fn optional_text_transform_falls_back_to_raw_text_after_panic() {
+ let raw = "原始轉錄。".to_string();
+ let result = fail_open_text_transform(raw.clone(), |_| {
+ panic!("simulated optional cleanup failure")
+ });
+
+ assert_eq!(result, raw);
+ }
+
#[test]
fn transcribe_cpp_run_plan_maps_chinese_variants() {
let plan = transcribe_cpp_run_plan(false, "zh-Hant", &languages(&["zh"]), true);
diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.json
index 8062a9f8..801229cf 100644
--- a/src/i18n/locales/ar/translation.json
+++ b/src/i18n/locales/ar/translation.json
@@ -337,7 +337,7 @@
},
"customWords": {
"title": "كلمات مخصصة",
- "description": ".أضف الكلمات التي غالباً ما يتم فهمها بشكل خاطئ أو كتابتها بشكل خاطئ أثناء التفريغ. سيقوم النظام تلقائياً بتصحيح الكلمات ذات الصوت المماثل لتطابق قائمتك",
+ "description": "ساعد النماذج المدعومة على التعرّف على الأسماء والمصطلحات المتخصصة. يقتصر التصحيح التقريبي حاليًا على الكلمات التي تستخدم الأحرف A–Z والأرقام.",
"placeholder": "أضف كلمة",
"add": "إضافة",
"remove": "إزالة {{word}}",
diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.json
index 302e5c12..937680ce 100644
--- a/src/i18n/locales/bg/translation.json
+++ b/src/i18n/locales/bg/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Персонализирани думи",
- "description": "Добавете думи, които често се чуват или изписват грешно при транскрипция. Системата автоматично ще коригира близки по звучене думи според вашия списък.",
+ "description": "Помогнете на поддържаните модели да разпознават имена и специализирани термини. Приблизителната корекция в момента е ограничена до думи с букви A–Z и цифри.",
"placeholder": "Добавете дума",
"add": "Добавяне",
"remove": "Премахване на {{word}}",
diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.json
index cbdc7561..ec7017c7 100644
--- a/src/i18n/locales/cs/translation.json
+++ b/src/i18n/locales/cs/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Vlastní slova",
- "description": "Přidejte slova, která jsou při přepisu často špatně rozpoznána nebo napsána. Systém automaticky opraví podobně znějící slova podle vašeho seznamu.",
+ "description": "Pomozte podporovaným modelům rozpoznávat jména a odborné termíny. Přibližné opravy jsou v současnosti omezeny na slova obsahující písmena A–Z a číslice.",
"placeholder": "Přidat slovo",
"add": "Přidat",
"remove": "Odebrat {{word}}",
diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json
index e611fdee..094737eb 100644
--- a/src/i18n/locales/de/translation.json
+++ b/src/i18n/locales/de/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Benutzerdefinierte Wörter",
- "description": "Wörter hinzufügen, die oft falsch gehört oder geschrieben werden. Das System korrigiert automatisch ähnlich klingende Wörter entsprechend deiner Liste.",
+ "description": "Hilf unterstützten Modellen, Namen und Fachbegriffe zu erkennen. Die unscharfe Korrektur ist derzeit auf Wörter mit den Buchstaben A–Z und Zahlen beschränkt.",
"placeholder": "Wort hinzufügen",
"add": "Hinzufügen",
"remove": "{{word}} entfernen",
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index b1a8cc19..33c7321e 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Custom Words",
- "description": "Add words that are often misheard or misspelled during transcription. The system will automatically correct similar-sounding words to match your list.",
+ "description": "Help supported models recognize names and specialized terms. Fuzzy correction is currently limited to words using A–Z and numbers.",
"placeholder": "Add a word",
"add": "Add",
"remove": "Remove {{word}}",
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index 36713ac4..3efacbdd 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Palabras personalizadas",
- "description": "Agrega palabras que a menudo se escuchan mal o se escriben incorrectamente durante la transcripción. El sistema corregirá automáticamente palabras similares para que coincidan con tu lista.",
+ "description": "Ayuda a los modelos compatibles a reconocer nombres y términos especializados. Actualmente, la corrección aproximada se limita a palabras que usan letras de la A a la Z y números.",
"placeholder": "Agregar una palabra",
"add": "Agregar",
"remove": "Eliminar {{word}}",
diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.json
index 10a42948..9cce8c47 100644
--- a/src/i18n/locales/fr/translation.json
+++ b/src/i18n/locales/fr/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Mots personnalisés",
- "description": "Ajoutez des mots souvent mal entendus ou mal orthographiés lors de la transcription. Le système corrigera automatiquement les mots similaires pour correspondre à votre liste.",
+ "description": "Aidez les modèles compatibles à reconnaître les noms et les termes spécialisés. La correction approximative est actuellement limitée aux mots utilisant les lettres A à Z et des chiffres.",
"placeholder": "Ajouter un mot",
"add": "Ajouter",
"remove": "Supprimer {{word}}",
diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.json
index dc3dcc80..677ee35f 100644
--- a/src/i18n/locales/he/translation.json
+++ b/src/i18n/locales/he/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "מילים מותאמות אישית",
- "description": "הוסף מילים שנשמעות או נכתבות לא נכון לעיתים קרובות במהלך התמלול. המערכת תתקן אוטומטית מילים דומות כך שיתאימו לרשימה שלך.",
+ "description": "עזרו למודלים נתמכים לזהות שמות ומונחים מקצועיים. תיקון בקירוב מוגבל כרגע למילים המשתמשות באותיות A–Z ובמספרים.",
"placeholder": "הוסף מילה",
"add": "הוסף",
"remove": "הסר את {{word}}",
diff --git a/src/i18n/locales/hi/translation.json b/src/i18n/locales/hi/translation.json
index 14eed80f..775392b9 100644
--- a/src/i18n/locales/hi/translation.json
+++ b/src/i18n/locales/hi/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "कस्टम शब्द",
- "description": "ऐसे शब्द जोड़ें जो ट्रांसक्रिप्शन के दौरान अक्सर गलत सुने या गलत लिखे जाते हैं. मिलती-जुलती आवाज़ वाले शब्दों को सिस्टम अपने आप आपकी सूची के हिसाब से सुधार देगा.",
+ "description": "समर्थित मॉडल को नाम और विशेष शब्द पहचानने में मदद करें। फ़ज़ी सुधार फिलहाल A–Z अक्षरों और संख्याओं वाले शब्दों तक सीमित है।",
"placeholder": "शब्द जोड़ें",
"add": "जोड़ें",
"remove": "{{word}} हटाएं",
diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.json
index 5f761a29..5c0b9aee 100644
--- a/src/i18n/locales/it/translation.json
+++ b/src/i18n/locales/it/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Parole personalizzate",
- "description": "Aggiungi parole che vengono spesso fraintese o scritte in modo errato durante la trascrizione. Il sistema correggerà automaticamente le parole dal suono simile in modo che corrispondano al tuo elenco.",
+ "description": "Aiuta i modelli supportati a riconoscere nomi e termini specialistici. La correzione approssimativa è attualmente limitata alle parole che usano le lettere A–Z e i numeri.",
"placeholder": "Aggiungi una parola",
"add": "Aggiungi",
"remove": "Rimuovi {{word}}",
diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.json
index 560e798c..cac4c1d3 100644
--- a/src/i18n/locales/ja/translation.json
+++ b/src/i18n/locales/ja/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "カスタム単語",
- "description": "よく誤認識または誤入力される単語を追加します。システムは自動的に類似した発音の単語をリストに合わせて修正します。",
+ "description": "対応モデルが名前や専門用語を認識しやすくします。あいまい補正は現在、A~Zの英字と数字を使用する単語に限定されています。",
"placeholder": "単語を追加",
"add": "追加",
"remove": "{{word}}を削除",
diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.json
index 8392596e..a843dc53 100644
--- a/src/i18n/locales/ko/translation.json
+++ b/src/i18n/locales/ko/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "사용자 정의 단어",
- "description": "녹음 중 자주 잘못 들리거나 철자가 틀리는 단어를 추가하세요. 시스템이 유사한 소리의 단어를 목록과 일치하도록 자동으로 수정합니다.",
+ "description": "지원되는 모델이 이름과 전문 용어를 인식하도록 도와줍니다. 퍼지 교정은 현재 A–Z 문자와 숫자를 사용하는 단어로 제한됩니다.",
"placeholder": "단어 추가",
"add": "추가",
"remove": "{{word}} 제거",
diff --git a/src/i18n/locales/ne/translation.json b/src/i18n/locales/ne/translation.json
index 6a4a7b20..7ec013eb 100644
--- a/src/i18n/locales/ne/translation.json
+++ b/src/i18n/locales/ne/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "कस्टम शब्दहरू",
- "description": "ट्रान्सक्रिप्सनमा प्रायः गलत सुनिने वा गलत हिज्जे हुने शब्दहरू थप्नुहोस्। सिस्टमले उस्तै सुनिने शब्दहरूलाई तपाईंको सूचीअनुसार स्वतः सच्याउनेछ।",
+ "description": "समर्थित मोडेलहरूलाई नाम र विशेष शब्दावली चिन्न मद्दत गर्नुहोस्। फजी सुधार हाल A–Z अक्षर र अङ्क प्रयोग भएका शब्दहरूमा मात्र सीमित छ।",
"placeholder": "शब्द थप्नुहोस्",
"add": "थप्नुहोस्",
"remove": "{{word}} हटाउनुहोस्",
diff --git a/src/i18n/locales/nl/translation.json b/src/i18n/locales/nl/translation.json
index 9ebbfe5d..9d9c4946 100644
--- a/src/i18n/locales/nl/translation.json
+++ b/src/i18n/locales/nl/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Eigen woordenlijst",
- "description": "Voeg woorden toe die vaak verkeerd worden verstaan of gespeld. Het systeem corrigeert klankverwante woorden automatisch naar jouw lijst.",
+ "description": "Help ondersteunde modellen namen en vaktermen te herkennen. Fuzzy-correctie is momenteel beperkt tot woorden met de letters A–Z en cijfers.",
"placeholder": "Woord toevoegen",
"add": "Toevoegen",
"remove": "{{word}} verwijderen",
diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.json
index eab79049..ff2570f9 100644
--- a/src/i18n/locales/pl/translation.json
+++ b/src/i18n/locales/pl/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Własne słowa",
- "description": "Dodaj słowa, które często są źle rozpoznawane lub zapisywane podczas transkrypcji. System automatycznie poprawi podobnie brzmiące słowa, aby pasowały do Twojej listy.",
+ "description": "Pomóż obsługiwanym modelom rozpoznawać nazwy i specjalistyczne terminy. Korekta przybliżona jest obecnie ograniczona do słów używających liter A–Z i cyfr.",
"placeholder": "Dodaj słowo",
"add": "Dodaj",
"remove": "Usuń {{word}}",
diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.json
index 6156a7a0..1bf553ad 100644
--- a/src/i18n/locales/pt/translation.json
+++ b/src/i18n/locales/pt/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Palavras Personalizadas",
- "description": "Adicione palavras que são frequentemente mal ouvidas ou mal escritas durante a transcrição. O sistema irá automaticamente corrigir palavras semelhantes para corresponder à sua lista.",
+ "description": "Ajude os modelos compatíveis a reconhecer nomes e termos especializados. A correção aproximada está atualmente limitada a palavras que usam letras de A–Z e números.",
"placeholder": "Adicionar uma palavra",
"add": "Adicionar",
"remove": "Remover {{word}}",
diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json
index 06ef999b..53db4a3d 100644
--- a/src/i18n/locales/ru/translation.json
+++ b/src/i18n/locales/ru/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Пользовательский словарь",
- "description": "Добавить слова, которые часто неправильно слышатся или пишутся с ошибками во время транскрипции. Система автоматически исправит похожие по звучанию слова, чтобы они соответствовали вашему списку.",
+ "description": "Помогите поддерживаемым моделям распознавать имена и специализированные термины. Нечёткая коррекция сейчас доступна только для слов, содержащих буквы A–Z и цифры.",
"placeholder": "Добавить слово",
"add": "Добавить",
"remove": "Удалить {{word}}",
diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.json
index a86aadb1..dc7294c8 100644
--- a/src/i18n/locales/sv/translation.json
+++ b/src/i18n/locales/sv/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Anpassade ord",
- "description": "Lägg till ord som ofta hörs fel eller stavas fel under transkription. Systemet kommer automatiskt att korrigera liknande ord för att matcha din lista.",
+ "description": "Hjälp modeller som stöds att känna igen namn och specialtermer. Ungefärlig korrigering är för närvarande begränsad till ord med bokstäverna A–Z och siffror.",
"placeholder": "Lägg till ett ord",
"add": "Lägg till",
"remove": "Ta bort {{word}}",
diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.json
index 22d9e0b1..7bf05266 100644
--- a/src/i18n/locales/tr/translation.json
+++ b/src/i18n/locales/tr/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Özel Kelimeler",
- "description": "Transkripsiyon sırasında sıkça yanlış duyulan veya yanlış yazılan kelimeleri ekleyin. Sistem, benzer sesli kelimeleri listenize göre otomatik olarak düzeltir.",
+ "description": "Desteklenen modellerin adları ve özel terimleri tanımasına yardımcı olun. Bulanık düzeltme şu anda A–Z harflerini ve rakamları kullanan sözcüklerle sınırlıdır.",
"placeholder": "Kelime ekle",
"add": "Ekle",
"remove": "{{word}} Kaldır",
diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.json
index 5c0d913d..90e302fa 100644
--- a/src/i18n/locales/uk/translation.json
+++ b/src/i18n/locales/uk/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Власні слова",
- "description": "Додайте слова, які часто неправильно розпізнаються під час транскрипції. Система автоматично виправлятиме схожі за звучанням слова відповідно до вашого списку.",
+ "description": "Допоможіть підтримуваним моделям розпізнавати імена та спеціалізовані терміни. Нечітке виправлення наразі обмежене словами, що містять літери A–Z і цифри.",
"placeholder": "Додати слово",
"add": "Додати",
"remove": "Видалити {{word}}",
diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.json
index 332a20b6..2a636c67 100644
--- a/src/i18n/locales/vi/translation.json
+++ b/src/i18n/locales/vi/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "Từ tùy chỉnh",
- "description": "Thêm các từ thường bị nghe nhầm hoặc viết sai trong quá trình chuyển đổi. Hệ thống sẽ tự động sửa các từ có âm thanh tương tự để khớp với danh sách của bạn.",
+ "description": "Giúp các mô hình được hỗ trợ nhận dạng tên và thuật ngữ chuyên ngành. Tính năng sửa gần đúng hiện chỉ áp dụng cho các từ sử dụng chữ cái A–Z và chữ số.",
"placeholder": "Thêm một từ",
"add": "Thêm",
"remove": "Xóa {{word}}",
diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.json
index c08e8504..4ab651b9 100644
--- a/src/i18n/locales/zh-TW/translation.json
+++ b/src/i18n/locales/zh-TW/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "自訂詞彙",
- "description": "新增經常被誤聽或拼寫錯誤的詞彙。系統會自動將發音相似的詞彙修正為您列表中的詞彙",
+ "description": "協助支援的模型辨識名稱和專業術語。目前,模糊修正僅適用於使用 A–Z 字母和數字的詞語。",
"placeholder": "新增詞彙",
"add": "新增",
"remove": "刪除 {{word}}",
diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.json
index a239dca7..eff41423 100644
--- a/src/i18n/locales/zh/translation.json
+++ b/src/i18n/locales/zh/translation.json
@@ -358,7 +358,7 @@
},
"customWords": {
"title": "自定义词汇",
- "description": "添加经常被误听或拼写错误的词汇。系统将自动将发音相似的词汇修正为您列表中的词汇。",
+ "description": "帮助受支持的模型识别名称和专业术语。目前,模糊纠错仅适用于使用 A–Z 字母和数字的词语。",
"placeholder": "添加词汇",
"add": "添加",
"remove": "删除 {{word}}",