refactor: rename AudioRecorder to PipewireAudioRecorder and update references.
This commit is contained in:
@@ -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
|
||||
{
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user