A free, open source, and extensible speech-to-text application that works completely offline.
fix cyrillic (unicode) path problems (#1187)
CJ Paisc06cce72f61e
diff --git a/src-tauri/src/managers/audio.rs b/src-tauri/src/managers/audio.rsindex 75c43dc6..ddcd6c0b 100644--- a/src-tauri/src/managers/audio.rs+++ b/src-tauri/src/managers/audio.rs@@ -11,6 +11,7 @@ use crate::managers::transcription::StreamRouter;use crate::settings::{get_settings, AppSettings};use crate::utils;use log::{debug, error, info, warn};+use std::path::Path;use std::sync::atomic::{AtomicU64, Ordering};use std::sync::{Arc, Mutex};use std::time::{Duration, Instant};@@ -128,7 +129,7 @@ pub enum MicrophoneMode {/* ──────────────────────────────────────────────────────────────── */fn create_audio_recorder(- vad_path: &str,+ vad_path: &Path,app_handle: &tauri::AppHandle,stream_router: Arc<StreamRouter>,) -> Result<AudioRecorder, anyhow::Error> {@@ -357,7 +358,7 @@ impl AudioRecordingManager {).map_err(|e| anyhow::anyhow!("Failed to resolve VAD path: {}", e))?;*recorder_opt = Some(create_audio_recorder(- vad_path.to_str().unwrap(),+ &vad_path,&self.app_handle,Arc::clone(&self.stream_router),)?);