Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: centralize whisper fallback port (#5218)

[._.]/ Adam Eivyf7860af13768
diff --git a/server/services/voice/bootstrap.js b/server/services/voice/bootstrap.js
index 3a5f24a880..2cc2b98ceb 100644
--- a/server/services/voice/bootstrap.js
+++ b/server/services/voice/bootstrap.js
@@ -13,6 +13,7 @@ import { isToolCapable, isReasoningModel } from './llm.js';
import { getProviderById } from '../providers.js';
import { fetchWithTimeout } from '../../lib/fetchWithTimeout.js';
import { whichFirst } from '../../lib/processEnv.js';
+import { PORTS } from '../../lib/ports.js';
export const pexec = promisify(execFile);
@@ -163,7 +164,7 @@ export const startWhisper = async (cfg) => {
const url = new URL(cfg.stt.endpoint);
const host = url.hostname;
- const port = url.port || '5562';
+ const port = url.port || String(PORTS.WHISPER);
// Delete stale PM2 entry so our own previous instance doesn't count as a collision.
await execPm2(['delete', WHISPER_APP]).catch(() => {});