fix: suppress VAD debug logs via console.debug override
Some checks failed
Deploy / deploy (push) Failing after 44s
Some checks failed
Deploy / deploy (push) Failing after 44s
This commit is contained in:
@@ -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/',
|
||||
|
||||
Reference in New Issue
Block a user