fix: suppress VAD debug logs via console.debug override
Some checks failed
Deploy / deploy (push) Failing after 44s

This commit is contained in:
Cosmo
2026-05-01 11:27:44 +00:00
parent a94a40ffc6
commit d5dc9e6ec9

View File

@@ -110,6 +110,13 @@ export default function VoiceController() {
if (vadRef.current) return if (vadRef.current) return
try { try {
const { MicVAD } = await import('@ricky0123/vad-web') 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({ const vad = await MicVAD.new({
model: 'v5', model: 'v5',
baseAssetPath: '/vad/', baseAssetPath: '/vad/',