From fecea2c7a4ecc48b2354868894e78be361a2ccf1 Mon Sep 17 00:00:00 2001
From: Cw <cw@git.boborobots.com>
Date: Sat, 04 Jul 2026 16:53:53 +0800
Subject: [PATCH] Fix Windows ASR model paths for non-ASCII users
---
C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte b/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
index 2b3a727..c97ab1f 100755
--- a/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
+++ b/C1.source/privatevoice.src/frontend/src/components/onboarding/OnboardingView.svelte
@@ -14,7 +14,7 @@
let currentModelID = $state('')
onMount(() => {
- Events.On('model:download-progress', (ev: any) => {
+ const offDownloadProgress = Events.On('model:download-progress', (ev: any) => {
const data = ev?.data
if (data?.percent != null) {
if (data?.modelID) {
@@ -31,7 +31,7 @@
}
})
- Events.On('engine:status', (ev: any) => {
+ const offEngineStatus = Events.On('engine:status', (ev: any) => {
const data = ev?.data
if (data?.status === 'ready') {
downloadActive = false
@@ -56,6 +56,11 @@
})
triggerDownload()
+
+ return () => {
+ offDownloadProgress()
+ offEngineStatus()
+ }
})
async function triggerDownload() {
--
Gitblit v1.9.3