+
+ Say a phrase to save a clip. Only listens while capturing. Uses the mic
+ from Audio.
+
+
+ set({ voiceTrigger: v })}
+ />
+
+ {s.voiceTrigger && (
+ <>
+
+ set({ voicePhrase: v })}
+ className="w-[320px]"
+ />
+
+
+
+ setSens(v)}
+ onValueCommit={([v]) => set({ voiceSensitivity: v })}
+ />
+
+ {sens}
+
+
+
+
+
+
+ {voice?.dir}}
+ >
+
+ {s.voiceDir && (
+
+ )}
+
+
+
+ {voice?.error && {voice.error}
}
+ {dl?.error && !dl.active && (
+ {dl.error}
+ )}
+
+ Runs on your PC, nothing is sent anywhere.
+
+ >
+ )}
+
+ );
+}
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index a6d7d68..194b54b 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -36,6 +36,10 @@ export type Settings = {
aiModel: string;
aiAutoTitle: boolean;
aiTranscribe: boolean;
+ voiceTrigger: boolean;
+ voicePhrase: string;
+ voiceDir: string;
+ voiceSensitivity: number;
systemDeviceId: string;
micDeviceId: string;
hotkeys: Hotkeys;
@@ -93,7 +97,8 @@ export type AppStatus = {
usage: Usage;
ffmpeg: { ffmpeg: string; ffprobe: string; version: string };
ffmpegReady: boolean;
- download: { active: boolean; done: number; total: number; error: string };
+ download: Download;
+ voice: { ready: boolean; dir: string; error: string; download: Download };
hotkeyErrors: string[];
activeJobs: number;
};
@@ -164,6 +169,8 @@ export type UpdateState = { available: boolean; checking: boolean; latest: strin
export type Uploader = { id: string; name: string; host: string; builtin: boolean; videoReady: boolean };
+export type Download = { active: boolean; done: number; total: number; error: string };
+
export type AIProvider = { id: string; label: string; model: string; transcribe: boolean; keyUrl: string };
export type Job = {
@@ -255,6 +262,7 @@ export const api = {
pickSoundFile: () => call