diff --git a/Audio/AudioRecorder.cs b/Audio/PipewireAudioRecorder.cs similarity index 91% rename from Audio/AudioRecorder.cs rename to Audio/PipewireAudioRecorder.cs index 16f4b0e..51df9b4 100644 --- a/Audio/AudioRecorder.cs +++ b/Audio/PipewireAudioRecorder.cs @@ -5,7 +5,7 @@ using Toak.Core.Interfaces; namespace Toak.Audio; -public class AudioRecorder(IRecordingStateTracker stateTracker, INotifications notifications) : IAudioRecorder +public class PipewireAudioRecorder(IRecordingStateTracker stateTracker, INotifications notifications) : IAudioRecorder { private readonly string _wavPath = Constants.Paths.RecordingWavFile; private readonly IRecordingStateTracker _stateTracker = stateTracker; @@ -67,7 +67,7 @@ public class AudioRecorder(IRecordingStateTracker stateTracker, INotifications n catch (Exception ex) { // Process might already be dead - Console.WriteLine($"[AudioRecorder] Error stopping pw-record: {ex.Message}"); + Console.WriteLine($"[PipewireAudioRecorder] Error stopping pw-record: {ex.Message}"); } finally { diff --git a/Core/DaemonService.cs b/Core/DaemonService.cs index 78fe737..204b898 100644 --- a/Core/DaemonService.cs +++ b/Core/DaemonService.cs @@ -56,7 +56,7 @@ public static class DaemonService IAudioRecorder recorder = config.AudioBackend == "ffmpeg" ? new FfmpegAudioRecorder(stateTracker, notifications) - : new AudioRecorder(stateTracker, notifications); + : new PipewireAudioRecorder(stateTracker, notifications); var orchestrator = new TranscriptionOrchestrator( speechClient, diff --git a/docs/STRUCTURE.md b/docs/STRUCTURE.md index 7fcfb5c..5a764d8 100644 --- a/docs/STRUCTURE.md +++ b/docs/STRUCTURE.md @@ -16,7 +16,7 @@ Toak/ │ └── Models/ # API payload representations ├── Assets/ # Sound files or other static resources ├── Audio/ -│ ├── AudioRecorder.cs # Handles audio capture via PipeWire (pw-record) +│ ├── PipewireAudioRecorder.cs # Handles audio capture via PipeWire (pw-record) │ └── FfmpegAudioRecorder.cs # Universal audio capture via ffmpeg ├── Commands/ │ ├── ToggleCommand.cs # Client command to start/stop recording via socket