agentgui 1.0.286 → 1.0.288
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/lib/speech.js +8 -0
- package/package.json +2 -1
- package/server.js +2 -1
package/lib/speech.js
CHANGED
|
@@ -39,6 +39,14 @@ const EDGE_VOICE_MAP = {
|
|
|
39
39
|
const PREDEFINED_IDS = new Set(POCKET_TTS_VOICES.filter(v => v.id !== 'default').map(v => v.id));
|
|
40
40
|
const POCKET_PORT = 8787;
|
|
41
41
|
|
|
42
|
+
// Detect if serverTTS has the expected API (getVoices = old server-tts, not the ONNX version)
|
|
43
|
+
// The ONNX server-tts-onnx has a different API (synthesize takes modelDir not extraDirs)
|
|
44
|
+
// and is incompatible with our voice-based approach - skip it and use edge-tts instead
|
|
45
|
+
if (serverTTS && typeof serverTTS.getVoices !== 'function') {
|
|
46
|
+
console.warn('[TTS] webtalk/server-tts has incompatible API (ONNX version), disabling it');
|
|
47
|
+
serverTTS = null;
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
let needsPatch = true;
|
|
43
51
|
try {
|
|
44
52
|
if (serverTTS && typeof serverTTS.getVoices === 'function') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentgui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.288",
|
|
4
4
|
"description": "Multi-agent ACP client with real-time communication",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"audio-decode": "^2.2.3",
|
|
27
27
|
"better-sqlite3": "^12.6.2",
|
|
28
28
|
"busboy": "^1.6.0",
|
|
29
|
+
"edge-tts-universal": "^1.0.1",
|
|
29
30
|
"express": "^5.2.1",
|
|
30
31
|
"fsbrowse": "^0.2.18",
|
|
31
32
|
"google-auth-library": "^10.5.0",
|
package/server.js
CHANGED
|
@@ -296,12 +296,13 @@ const debugLog = (msg) => {
|
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
299
|
+
const rootDir = process.env.PORTABLE_EXE_DIR || __dirname;
|
|
299
300
|
const PORT = process.env.PORT || 3000;
|
|
300
301
|
const BASE_URL = (process.env.BASE_URL || '/gm').replace(/\/+$/, '');
|
|
301
302
|
const watch = process.argv.includes('--no-watch') ? false : (process.argv.includes('--watch') || process.env.HOT_RELOAD !== 'false');
|
|
302
303
|
|
|
303
304
|
const STARTUP_CWD = process.env.STARTUP_CWD || process.cwd();
|
|
304
|
-
const staticDir = path.join(
|
|
305
|
+
const staticDir = path.join(rootDir, 'static');
|
|
305
306
|
if (!fs.existsSync(staticDir)) fs.mkdirSync(staticDir, { recursive: true });
|
|
306
307
|
|
|
307
308
|
// Express sub-app for fsbrowse file browser and file upload
|