fix(vad): type

This commit is contained in:
Neko Ayaka
2025-04-13 17:55:45 +08:00
parent f9cf0d4640
commit 8458c39c0c
+1 -1
View File
@@ -86,7 +86,7 @@ export class VAD {
this.emit('status', { type: 'info', message: 'Loading VAD model...' })
this.model = await AutoModel.from_pretrained('onnx-community/silero-vad', {
config: { model_type: 'custom' },
config: { model_type: 'custom' } as any,
dtype: 'fp32', // Full-precision
})