feat: Implement a modular skill system with hotword detection, streaming text output, and enhanced logging.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user