Ariver
2026-06-03 2fc1c3aef1e7934efeb1125210f4b97dbbb17414
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.