agentgui 1.0.286 → 1.0.287

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.
Files changed (2) hide show
  1. package/lib/speech.js +8 -0
  2. package/package.json +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.286",
3
+ "version": "1.0.287",
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",