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/',