From de858f214a09ce5210fe204c41c4414e2a7da347 Mon Sep 17 00:00:00 2001 From: Sharrnah <55756126+Sharrnah@users.noreply.github.com> Date: Thu, 15 Aug 2024 05:39:09 +0200 Subject: [PATCH] [BUGFIX] disabled VAD error "KeyError: 'plugins'" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reported by Néo Luigi --- audioWhisper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audioWhisper.py b/audioWhisper.py index d7a590e..326b7e6 100644 --- a/audioWhisper.py +++ b/audioWhisper.py @@ -727,7 +727,7 @@ def main(ctx, detect_energy, detect_energy_time, ui_download, devices, sample_ra # add audio data to the queue wav_audio_bytes = audio_tools.audio_bytes_to_wav(audio_data, channels=CHANNELS, sample_rate=SAMPLE_RATE) - audioprocessor.q.put({'time': time.time_ns(), 'data': wav_audio_bytes, 'final': True, 'settings': settings.SETTINGS}) + audioprocessor.q.put({'time': time.time_ns(), 'data': wav_audio_bytes, 'final': True, 'settings': settings.SETTINGS, 'plugins': Plugins.plugins}) # set typing indicator for VRChat and websocket clients typing_indicator_thread = threading.Thread(target=typing_indicator_function,