Ariver
2026-06-04 3fecf01a4c6c8e84dff785945644ad6c01c6db40
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.