feat: 功能优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user