Ariver
2026-06-07 90dfe73f1a1b6815cfba08ec165394719005e4cf
privatevoice.src/services/engine_service.go
@@ -159,10 +159,18 @@
func (s *EngineService) SetStatus(status, hardwareInfo, lastError string) {
   s.mu.Lock()
   defer s.mu.Unlock()
   s.status = status
   s.hardwareInfo = hardwareInfo
   s.lastError = lastError
   s.mu.Unlock()
   if s.app != nil {
      s.app.Event.Emit("engine:status", map[string]interface{}{
         "status":       status,
         "hardwareInfo": hardwareInfo,
         "error":        lastError,
      })
   }
}
// DownloadModel downloads the ASR model with progress events.