From d5dc9e6ec93ffd548e4de23f70215b306c5c5b56 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Fri, 1 May 2026 11:27:44 +0000 Subject: [PATCH] fix: suppress VAD debug logs via console.debug override --- components/VoiceController.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/VoiceController.tsx b/components/VoiceController.tsx index c5ea8f0..41c4f50 100644 --- a/components/VoiceController.tsx +++ b/components/VoiceController.tsx @@ -110,6 +110,13 @@ export default function VoiceController() { if (vadRef.current) return try { const { MicVAD } = await import('@ricky0123/vad-web') + // Подавить VAD | debug логи из библиотеки + const _origDebug = (console as any)._vadOrig || console.debug + ;(console as any)._vadOrig = _origDebug + console.debug = (...args: any[]) => { + if (typeof args[0] === 'string' && (args[0].startsWith('VAD |') || args[0].startsWith('using default audio'))) return + _origDebug.apply(console, args) + } const vad = await MicVAD.new({ model: 'v5', baseAssetPath: '/vad/',