benjamin-paine commited on
Commit
6b7e7b3
·
verified ·
1 Parent(s): 73d1f39

Upload index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -1
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) => `/models/${word.replace(' ', '-')}.onnx`)
 
 
 
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 */