Spaces:
Running
Running
benjamin-paine
commited on
Upload index.js
Browse files
index.js
CHANGED
@@ -107,12 +107,16 @@ const colors = {
|
|
107 |
"speech": [22,200,206],
|
108 |
"frame budget": [25,255,25]
|
109 |
};
|
|
|
110 |
const wakeWords = ["buddy", "hey buddy", "hi buddy", "sup buddy", "yo buddy", "okay buddy"];
|
111 |
const canvasSize = { width: 640, height: 100 };
|
112 |
const graphLineWidth = 1;
|
113 |
const options = {
|
114 |
debug: true,
|
115 |
-
modelPath: wakeWords.map((word) =>
|
|
|
|
|
|
|
116 |
};
|
117 |
|
118 |
/** Main */
|
|
|
107 |
"speech": [22,200,206],
|
108 |
"frame budget": [25,255,25]
|
109 |
};
|
110 |
+
const rootUrl = "";
|
111 |
const wakeWords = ["buddy", "hey buddy", "hi buddy", "sup buddy", "yo buddy", "okay buddy"];
|
112 |
const canvasSize = { width: 640, height: 100 };
|
113 |
const graphLineWidth = 1;
|
114 |
const options = {
|
115 |
debug: true,
|
116 |
+
modelPath: wakeWords.map((word) => `${rootUrl}/models/${word.replace(' ', '-')}.onnx`),
|
117 |
+
vadModelPath: `${rootUrl}/pretrained/silero-vad.onnx`,
|
118 |
+
spectrogramModelPath: `${rootUrl}/pretrained/mel-spectrogram.onnx`,
|
119 |
+
embeddingModelPath: `${rootUrl}/pretrained/speech-embedding.onnx`,
|
120 |
};
|
121 |
|
122 |
/** Main */
|