feat: 功能优化

This commit is contained in:
2026-06-13 22:20:31 +08:00
parent c31ecc46fc
commit a7d679d04f
5 changed files with 62 additions and 3 deletions

View File

@@ -48,6 +48,8 @@ export function useVAD(options?: VADOptions) {
getStream: () => Promise.resolve(stream),
startOnLoad: true,
model: "legacy",
// 指向 node_modules 中的 WASM 文件(由 Vite 中间件提供)
onnxWASMBasePath: "/node_modules/onnxruntime-web/dist/",
onSpeechStart: () => {
setIsSpeaking(true);