~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Remove audio functionality temporarily and replace with stub service
hashedviking2bb107cdffb6
diff --git a/src/local_deep_research/web/static/js/components/progress.js b/src/local_deep_research/web/static/js/components/progress.jsindex b2107be1ed..68ca3e1427 100644--- a/src/local_deep_research/web/static/js/components/progress.js+++ b/src/local_deep_research/web/static/js/components/progress.js@@ -784,11 +784,6 @@// Show notification if enabledshowNotification('Research Complete', 'Your research has been completed successfully.');- // Play success sound if enabled- if (window.audio && notificationsEnabled) {- window.audio.playSuccess();- }-// Update faviconupdateFavicon(100);@@ -830,11 +825,6 @@// Show notification if enabledshowNotification('Research Error', `There was an error with your research: ${data.error}`);- // Play error sound if enabled- if (window.audio && notificationsEnabled) {- window.audio.playError();- }-// Update faviconupdateFavicon(100, true);}diff --git a/src/local_deep_research/web/static/js/services/audio.js b/src/local_deep_research/web/static/js/services/audio.jsindex 5f308fd906..fb259e76ba 100644--- a/src/local_deep_research/web/static/js/services/audio.js+++ b/src/local_deep_research/web/static/js/services/audio.js@@ -1,102 +1,31 @@/**- * Audio Service for sound notifications- * Handles playing sound alerts when research is complete+ * Audio Service Stub+ * This is a placeholder for future sound notification implementation*/-// Audio objects for caching-const audioCache = {- success: null,- error: null-};--/**- * Initialize the audio service- */-function initializeAudio() {- // Preload the audio files- loadAudioFiles();-- console.log('Audio service initialized');-}--/**- * Load the audio files- */-function loadAudioFiles() {- try {- // Create audio objects if they don't exist- if (!audioCache.success) {- audioCache.success = new Audio('/research/static/sounds/success.mp3');- audioCache.success.preload = 'auto';- }-- if (!audioCache.error) {- audioCache.error = new Audio('/research/static/sounds/error.mp3');- audioCache.error.preload = 'auto';- }- } catch (error) {- console.warn('Could not load audio files:', error);- }-}--/**- * Play a sound notification- * @param {string} type - The type of notification: 'success' or 'error'- * @param {boolean} force - Force playing even if notifications are disabled- */-function playSound(type = 'success', force = false) {- try {- // Check if notifications are enabled in localStorage- const notificationsEnabled = localStorage.getItem('notificationsEnabled') === 'true' || force;-- // Only play if notifications are enabled- if (notificationsEnabled) {- // Get the audio object- const audio = audioCache[type] || audioCache.success;-- // Play the sound if the audio is loaded- if (audio) {- // Reset the playback position- audio.currentTime = 0;-- // Play the sound- audio.play().catch(error => {- console.warn(`Could not play ${type} sound:`, error);- });- } else {- console.warn(`Audio for ${type} not loaded`);- // Try to load it now- loadAudioFiles();- }- }- } catch (error) {- console.warn('Error playing sound:', error);- }-}--/**- * Play success sound notification- * @param {boolean} force - Force playing even if notifications are disabled- */-function playSuccessSound(force = false) {- playSound('success', force);-}--/**- * Play error sound notification- * @param {boolean} force - Force playing even if notifications are disabled- */-function playErrorSound(force = false) {- playSound('error', force);-}--// Export to window object for global access+// Set global audio object as a no-op servicewindow.audio = {- initialize: initializeAudio,- playSuccess: playSuccessSound,- playError: playErrorSound,- play: playSound+ initialize: function() {+ console.log('Audio service disabled - will be implemented in the future');+ return false;+ },+ playSuccess: function() {+ console.log('Success sound playback disabled');+ return false;+ },+ playError: function() {+ console.log('Error sound playback disabled');+ return false;+ },+ play: function() {+ console.log('Sound playback disabled');+ return false;+ },+ test: function() {+ console.log('Sound testing disabled');+ return false;+ }};-// Initialize when loaded-initializeAudio();\ No newline at end of file+// Log that audio is disabled+console.log('Audio service is currently disabled - notifications will be implemented later');\ No newline at end of filediff --git a/src/local_deep_research/web/templates/pages/progress.html b/src/local_deep_research/web/templates/pages/progress.htmlindex 9309eab229..d81c87d235 100644--- a/src/local_deep_research/web/templates/pages/progress.html+++ b/src/local_deep_research/web/templates/pages/progress.html@@ -45,7 +45,8 @@{% endblock %}{% block page_scripts %}-<!-- Load required services first -->+<!-- Load required services -->+<script src="{{ url_for('research.serve_static', path='js/services/audio.js') }}"></script><script src="{{ url_for('research.serve_static', path='js/services/ui.js') }}"></script><script src="{{ url_for('research.serve_static', path='js/services/formatting.js') }}"></script><script src="{{ url_for('research.serve_static', path='js/services/api.js') }}"></script>diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.htmlindex 41171fd868..a324ef946a 100644--- a/src/local_deep_research/web/templates/pages/research.html+++ b/src/local_deep_research/web/templates/pages/research.html@@ -35,13 +35,11 @@</div></div></div>- <div class="form-options">- <div class="form-option">- <label for="notification-toggle" class="checkbox-label">- <input type="checkbox" id="notification-toggle" checked>- <span class="checkbox-text">Sound notifications when complete</span>- </label>- </div>+ <div class="form-group notification-group">+ <label for="notification-toggle" class="checkbox-label">+ <input type="checkbox" id="notification-toggle" disabled>+ <span class="checkbox-text">Sound notifications disabled (coming soon)</span>+ </label></div><div class="form-actions"><button type="submit" class="btn btn-primary" id="start-research-btn"><i class="fas fa-rocket"></i> Start Research</button>