From bf61694eebd30a042cd4be863b670277eff4b3a3 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Wed, 28 Aug 2024 17:40:45 +0200 Subject: [PATCH] feat: disable audio in app settings --- .../components/recording-settings.tsx | 37 +++++++++++++++++-- .../lib/hooks/use-settings.tsx | 5 +++ .../screenpipe-app-tauri/src-tauri/Cargo.toml | 2 +- .../src-tauri/src/main.rs | 11 ++++++ 4 files changed, 51 insertions(+), 4 deletions(-) diff --git a/examples/apps/screenpipe-app-tauri/components/recording-settings.tsx b/examples/apps/screenpipe-app-tauri/components/recording-settings.tsx index c613f58a6..d3e8b5985 100644 --- a/examples/apps/screenpipe-app-tauri/components/recording-settings.tsx +++ b/examples/apps/screenpipe-app-tauri/components/recording-settings.tsx @@ -148,6 +148,7 @@ export function RecordingSettings({ audioDevices: localSettings.audioDevices, usePiiRemoval: localSettings.usePiiRemoval, restartInterval: localSettings.restartInterval, + disableAudio: localSettings.disableAudio, }; console.log("Settings to update:", settingsToUpdate); await updateSettings(settingsToUpdate); @@ -205,6 +206,10 @@ export function RecordingSettings({ setLocalSettings({ ...localSettings, restartInterval: newValue }); }; + const handleDisableAudioChange = (checked: boolean) => { + setLocalSettings({ ...localSettings, disableAudio: checked }); + }; + return ( <>
@@ -398,9 +403,6 @@ export function RecordingSettings({
before saving to the database or returning in search results -
- this will avoid sending these information to openai - for example

@@ -446,6 +448,35 @@ export function RecordingSettings({ />
+
+
+ + +
+
+