feat: Add FFmpeg audio recording and ydotool typing backends, making them configurable.
This commit is contained in:
@@ -34,6 +34,7 @@ public static class Constants
|
||||
public const string ProcessKill = "kill";
|
||||
public const string TypeX11 = "xdotool";
|
||||
public const string TypeWayland = "wtype";
|
||||
public const string TypeYdotool = "ydotool";
|
||||
public const string Notify = "notify-send";
|
||||
public const string PlaySound = "paplay";
|
||||
public const string ClipboardX11 = "xclip";
|
||||
|
||||
@@ -54,11 +54,15 @@ public static class DaemonService
|
||||
var notifications = new Notifications();
|
||||
|
||||
var groqClient = new GroqApiClient(config.GroqApiKey);
|
||||
IAudioRecorder recorder = config.AudioBackend == "ffmpeg"
|
||||
? new FfmpegAudioRecorder(stateTracker, notifications)
|
||||
: new AudioRecorder(stateTracker, notifications);
|
||||
|
||||
var orchestrator = new TranscriptionOrchestrator(
|
||||
groqClient,
|
||||
groqClient,
|
||||
configManager,
|
||||
new AudioRecorder(stateTracker, notifications),
|
||||
recorder,
|
||||
notifications,
|
||||
new TextInjector(notifications),
|
||||
new HistoryManager(),
|
||||
|
||||
Reference in New Issue
Block a user