agentgui 1.0.244 → 1.0.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +2 -2
- package/static/js/features.js +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -73,7 +73,7 @@ async function ensureModelsDownloaded() {
|
|
|
73
73
|
config.modelsDir = path.dirname(sttDir);
|
|
74
74
|
config.ttsModelsDir = ttsDir;
|
|
75
75
|
config.sttModelsDir = sttDir;
|
|
76
|
-
config.whisperBaseUrl = 'https://huggingface.co/
|
|
76
|
+
config.whisperBaseUrl = 'https://huggingface.co/';
|
|
77
77
|
config.ttsBaseUrl = 'https://huggingface.co/datasets/AnEntrypoint/sttttsmodels/resolve/main/tts/';
|
|
78
78
|
|
|
79
79
|
const totalFiles = 16;
|
|
@@ -82,7 +82,7 @@ async function ensureModelsDownloaded() {
|
|
|
82
82
|
if (!sttOk) {
|
|
83
83
|
console.log('[MODELS] Downloading STT model...');
|
|
84
84
|
broadcastModelProgress({ started: true, done: false, downloading: true, type: 'stt', completedFiles, totalFiles });
|
|
85
|
-
await webtalkWhisper.ensureModel('whisper-base', config);
|
|
85
|
+
await webtalkWhisper.ensureModel('onnx-community/whisper-base', config);
|
|
86
86
|
completedFiles += 10;
|
|
87
87
|
}
|
|
88
88
|
|
package/static/js/features.js
CHANGED
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
function isVoiceReady() {
|
|
201
|
-
if (window.agentGUIClient && window.agentGUIClient._modelDownloadInProgress
|
|
202
|
-
return window.agentGUIClient._modelDownloadProgress?.done === true ||
|
|
201
|
+
if (window.agentGUIClient && !window.agentGUIClient._modelDownloadInProgress) {
|
|
202
|
+
return window.agentGUIClient._modelDownloadProgress?.done === true ||
|
|
203
203
|
window.agentGUIClient._modelDownloadProgress?.complete === true;
|
|
204
204
|
}
|
|
205
205
|
return false;
|