feat: Implement a modular skill system with hotword detection, streaming text output, and enhanced logging.
This commit is contained in:
@@ -15,9 +15,12 @@ public static class AudioRecorder
|
||||
{
|
||||
if (File.Exists(WavPath))
|
||||
{
|
||||
Logger.LogDebug($"Deleting old audio file: {WavPath}");
|
||||
File.Delete(WavPath);
|
||||
}
|
||||
|
||||
Logger.LogDebug("Starting ffmpeg to record audio...");
|
||||
|
||||
var pInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = "ffmpeg",
|
||||
@@ -41,6 +44,7 @@ public static class AudioRecorder
|
||||
var pid = StateTracker.GetRecordingPid();
|
||||
if (pid.HasValue)
|
||||
{
|
||||
Logger.LogDebug($"Found active recording process with PID {pid.Value}. Attempting to stop...");
|
||||
try
|
||||
{
|
||||
var process = Process.GetProcessById(pid.Value);
|
||||
|
||||
Reference in New Issue
Block a user