1
0

feat: Implement a modular skill system with hotword detection, streaming text output, and enhanced logging.

This commit is contained in:
2026-02-27 00:39:32 +01:00
parent 4ee4bc5457
commit a365448399
18 changed files with 451 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ public static class StateTracker
public static void SetRecording(int ffmpegPid)
{
Logger.LogDebug($"Setting recording state with PID {ffmpegPid}");
File.WriteAllText(StateFilePath, ffmpegPid.ToString());
}
@@ -21,6 +22,7 @@ public static class StateTracker
var content = File.ReadAllText(StateFilePath).Trim();
if (int.TryParse(content, out var pid))
{
Logger.LogDebug($"Read recording PID {pid} from state file");
return pid;
}
}
@@ -31,6 +33,7 @@ public static class StateTracker
{
if (File.Exists(StateFilePath))
{
Logger.LogDebug("Clearing recording state file");
File.Delete(StateFilePath);
}
}