feat: 部署优化
This commit is contained in:
@@ -50,8 +50,9 @@ export function useVAD(options?: VADOptions) {
|
||||
getStream: () => Promise.resolve(stream),
|
||||
startOnLoad: true,
|
||||
model: "legacy",
|
||||
// 指向 node_modules 中的 WASM 文件(由 Vite 中间件提供)
|
||||
onnxWASMBasePath: "/node_modules/onnxruntime-web/dist/",
|
||||
// WASM 和模型文件均由 Vite 插件复制到 public/ (即 dist 根目录)
|
||||
onnxWASMBasePath: "/",
|
||||
modelURL: "/silero_vad_legacy.onnx",
|
||||
|
||||
onSpeechStart: () => {
|
||||
setIsSpeaking(true);
|
||||
|
||||
Reference in New Issue
Block a user