1
0

refactor: rename AudioRecorder to PipewireAudioRecorder and update references.

This commit is contained in:
2026-03-01 21:43:05 +01:00
parent e96cafabc6
commit e5aa9e2cc0
3 changed files with 4 additions and 4 deletions

View File

@@ -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
{

View File

@@ -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,

View File

@@ -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