agentgui 1.0.289 → 1.0.290
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 +12 -5
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -2611,13 +2611,20 @@ const server = http.createServer(async (req, res) => {
|
|
|
2611
2611
|
try {
|
|
2612
2612
|
const { getStatus } = await getSpeech();
|
|
2613
2613
|
const baseStatus = getStatus();
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2614
|
+
let pythonDetected = false, pythonVersion = null;
|
|
2615
|
+
try {
|
|
2616
|
+
const r = createRequire(import.meta.url);
|
|
2617
|
+
const serverTTS = r('webtalk/server-tts');
|
|
2618
|
+
if (typeof serverTTS.detectPython === 'function') {
|
|
2619
|
+
const pyInfo = serverTTS.detectPython();
|
|
2620
|
+
pythonDetected = pyInfo.found;
|
|
2621
|
+
pythonVersion = pyInfo.version || null;
|
|
2622
|
+
}
|
|
2623
|
+
} catch(e) {}
|
|
2617
2624
|
sendJSON(req, res, 200, {
|
|
2618
2625
|
...baseStatus,
|
|
2619
|
-
pythonDetected
|
|
2620
|
-
pythonVersion
|
|
2626
|
+
pythonDetected,
|
|
2627
|
+
pythonVersion,
|
|
2621
2628
|
setupMessage: baseStatus.ttsReady ? 'pocket-tts ready' : 'Will setup on first TTS request',
|
|
2622
2629
|
modelsDownloading: modelDownloadState.downloading,
|
|
2623
2630
|
modelsComplete: modelDownloadState.complete,
|