Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge main into feat/openai-read-aloud

milind-soni537295869dc6
diff --cc server/config.ts
index 0c24dd86da,66ff1389b2..4de6be0737
--- a/server/config.ts
+++ b/server/config.ts
@@@ -380,12 -381,13 +381,13 @@@ const appConfigSchema = z.object(
vps: vpsConfigSchema.optional(),
/** OpenCode key, plus `providerKeys` for its other providers by the env name OpenCode reads; both write-only and only for its child. */
opencodeGo: z.object({ apiKey: optionalText, providerKeys: z.record(z.string(), z.string()).optional() }).optional(),
- /** `provider`: "elevenlabs" (default, `key`), "fish" (`fishKey`, `fishModel`), "system", "xai" (`xai.key`), "openai" (`openai.key`) or "chatterbox" (local; `baseUrl`, `model`). */
- /** `provider`: "elevenlabs" (default, `key`), "fish" (`fishKey`, `fishModel`), "system", "xai" (`xai.key`), "gemini" (`geminiKey`, `model`) or "chatterbox" (local; `baseUrl`, `model`). */
++ /** `provider`: "elevenlabs" (default, `key`), "fish" (`fishKey`, `fishModel`), "system", "xai" (`xai.key`), "gemini" (`geminiKey`, `model`), "openai" (`openai.key`) or "chatterbox" (local; `baseUrl`, `model`). */
tts: z.object({
key: optionalText,
fishKey: optionalText,
+ geminiKey: optionalText,
voice: optionalText,
- provider: z.enum(["elevenlabs", "fish", "system", "chatterbox", "xai", "openai"]).optional(),
- provider: z.enum(["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini"]).optional(),
++ provider: z.enum(["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini", "openai"]).optional(),
baseUrl: z
.string()
.trim()
@@@ -507,10 -503,10 +503,10 @@@ export interface AppConfig extends Help
/** A named host from the user's SSH config. Authentication stays with SSH. */
vps?: { sshAlias?: string };
opencodeGo?: { apiKey?: string; providerKeys?: Record<string, string> };
- tts?: { key?: string; fishKey?: string; voice?: string; provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "openai"; baseUrl?: string; model?: string; fishModel?: FishTtsModel };
- tts?: { key?: string; fishKey?: string; geminiKey?: string; voice?: string; provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini"; baseUrl?: string; model?: string; fishModel?: FishTtsModel };
++ tts?: { key?: string; fishKey?: string; geminiKey?: string; voice?: string; provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini" | "openai"; baseUrl?: string; model?: string; fishModel?: FishTtsModel };
decider?: DeciderConfig;
imageGen?: ImageGenerationConfig;
- live?: { key?: string; voice?: string; readTypedReplies?: boolean; idleMinutes?: number };
+ live?: LiveConfig;
profile?: { name?: string; email?: string; aboutMe?: string; avatarUrl?: string };
rooms?: { turnTimeoutMinutes: number };
mcp?: { callTimeoutMinutes?: number };
diff --cc server/index.ts
index 7e1bab7387,e8729ef9c1..b6de65b779
--- a/server/index.ts
+++ b/server/index.ts
@@@ -315,12 -312,11 +312,12 @@@ import
toWireTask,
} from "./store.ts";
import * as tts from "./tts/index.ts";
+import { voiceNoteFailure } from "./tts/errors.ts";
import { createDecider, deciderReady, describeDecider } from "./decider/index.ts"; import { createExtractor, describeHelpers } from "./extractor/index.ts";
- import { decideRoomResponder } from "./decider/room-routing.ts"; import { roomRoutingInput } from "./host/room-routing-input.ts";
+ import { createStopLineRoutes } from "./routes/stop-line.ts"; import { decideRoomResponder } from "./decider/room-routing.ts"; import { roomRoutingInput } from "./host/room-routing-input.ts";
import { createLiveSession, liveAttachUrl, liveHistoryFrom, LiveSessionError, type LiveBot, type LiveHistoryMessage } from "./live-call.ts";
- import { LiveCallController, LiveCallSignedOutError, type LiveSocket } from "./live-call-controller.ts";
- import { liveCallKey, liveSettingsFor } from "./live-settings.ts";
+ import { LiveCallController, LiveCallSignedOutError, openLiveSocket } from "./live-call-controller.ts";
+ import { liveCallSettings, liveSettingsFor, liveSettingsForClient, saveLiveSettings } from "./live-settings.ts"; import { azureLiveCallRefusal, liveScopeRefusal } from "./live-access.ts";
import { recordLiveCall, spokenLineFields, titleLiveCall } from "./live-call-record.ts";
import { narrateTool, toUtterances } from "./tts/speech-text.ts";
import { createTtsRoutes } from "./routes/tts.ts";
diff --cc server/routes/tts.ts
index 218219d987,964ca9c559..d8a6b81b63
--- a/server/routes/tts.ts
+++ b/server/routes/tts.ts
@@@ -1,8 -1,8 +1,9 @@@
// The voice routes: whether a voice is ready, the provider's voices (searched, or one pasted by ID or link), adding an
- // ElevenLabs Voice Library voice to My Voices, and speaking a line. Scopes are keyed by path in server/request-auth.ts.
+ // ElevenLabs Voice Library voice to My Voices, speaking a line, and hearing speech. Scopes are keyed by path in server/request-auth.ts.
import type { AppConfig } from "../config.ts";
import { redactSecretsInText } from "../redact.ts";
+ import * as fish from "../tts/fish.ts";
+import { voiceFailure } from "../tts/errors.ts";
import * as tts from "../tts/index.ts";
import { toUtterances, VOICE_FIRST_BLOCK_MAX_CHARS } from "../tts/speech-text.ts";
import { PASS, type RouteHandler } from "./table.ts";
@@@ -69,14 -68,45 +73,49 @@@ export function createTtsRoutes(deps: T
res.end(Buffer.from(audio.bytes));
return;
} catch (e) {
- if (e instanceof tts.NoVoiceConfigured) return json(res, 409, { error: e.message });
+ if (controller.signal.aborted) return;
+ const failure = voiceFailure(e);
+ if (failure) return json(res, failure.status, failure.body);
return json(res, 502, { error: e instanceof Error ? e.message : String(e) });
+ } finally {
+ res.off("close", cancel);
}
}
+ if (method === "POST" && path === "/api/tts/transcribe") {
+ const rawType = req.headers["content-type"];
+ const mime = (Array.isArray(rawType) ? rawType[0] : rawType)?.split(";")[0]?.trim().toLowerCase();
+ if (mime !== "audio/wav") {
+ req.resume();
+ return json(res, 400, { error: "content-type must be audio/wav" });
+ }
+ const key = cfg.tts?.fishKey;
+ if (!key) {
+ req.resume();
+ return json(res, 409, { error: "Add a Fish Audio key in Settings → API keys to talk to your bots here." });
+ }
+ const declared = Number(req.headers["content-length"] ?? 0);
+ if (declared > TRANSCRIBE_MAX_BYTES) {
+ req.resume();
+ return json(res, 413, { error: `audio exceeds ${TRANSCRIBE_MAX_BYTES} bytes` });
+ }
+ const audio = await new Promise<Buffer | null>((resolve, reject) => {
+ const chunks: Buffer[] = [];
+ let received = 0;
+ // Answering before the upload is read to its end resets the connection on Windows instead of delivering the 413.
+ req.on("data", (chunk: Buffer) => {
+ received += chunk.byteLength;
+ if (received <= TRANSCRIBE_MAX_BYTES) chunks.push(chunk);
+ });
+ req.on("end", () => resolve(received > TRANSCRIBE_MAX_BYTES ? null : Buffer.concat(chunks)));
+ req.on("error", reject);
+ });
+ if (!audio) return json(res, 413, { error: `audio exceeds ${TRANSCRIBE_MAX_BYTES} bytes` });
+ try {
+ return json(res, 200, { text: await fish.transcribe(audio, mime, key) });
+ } catch (e) {
+ return json(res, 502, { error: e instanceof Error ? e.message : String(e) });
+ }
+ }
return PASS;
};
}
diff --cc server/tts/index.ts
index 533412b4fb,4c427e77c7..f259b34a67
--- a/server/tts/index.ts
+++ b/server/tts/index.ts
@@@ -2,12 -2,12 +2,13 @@@ import type { AppConfig } from "../conf
import { voiceCredential } from "../included-services.ts";
import * as chatterbox from "./chatterbox.ts";
import * as elevenlabs from "./elevenlabs.ts";
+import * as openai from "./openai.ts";
import * as grok from "./grok.ts";
import * as fish from "./fish.ts";
+ import * as gemini from "./gemini.ts";
import * as systemVoices from "./system-voices.ts";
- export type VoiceProvider = "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "openai";
-export type VoiceProvider = "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini";
++export type VoiceProvider = "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini" | "openai";
export class NoVoiceConfigured extends Error {
// Not a parameter property: the harness runs under strip-only `node --experimental-strip-types`, which rejects one at load.
@@@ -28,12 -28,12 +29,13 @@@ const elevenLabs = (cfg: AppConfig) =>
export function voiceProvider(cfg: AppConfig): VoiceProvider {
const provider = cfg.tts?.provider;
- return provider === "openai" || provider === "xai" || provider === "fish" || provider === "system" || provider === "chatterbox" ? provider : "elevenlabs";
- return provider === "gemini" || provider === "xai" || provider === "fish" || provider === "system" || provider === "chatterbox" ? provider : "elevenlabs";
++ return provider === "gemini" || provider === "openai" || provider === "xai" || provider === "fish" || provider === "system" || provider === "chatterbox" ? provider : "elevenlabs";
}
export function providerConfigured(cfg: AppConfig): boolean {
const provider = voiceProvider(cfg);
+ if (provider === "gemini") return Boolean(cfg.tts?.geminiKey);
+ if (provider === "openai") return Boolean(cfg.openai?.key);
if (provider === "xai") return Boolean(cfg.xai?.key);
if (provider === "system") return systemVoices.systemVoicesAvailable();
if (provider === "chatterbox") return Boolean(cfg.tts?.baseUrl?.trim());
@@@ -43,7 -43,7 +45,8 @@@
export function voiceConfigured(cfg: AppConfig): boolean {
const provider = voiceProvider(cfg);
+ if (provider === "gemini") return Boolean(cfg.tts?.geminiKey && gemini.isSupportedVoice(cfg.tts?.voice));
+ if (provider === "openai") return Boolean(cfg.openai?.key && cfg.tts?.voice);
if (provider === "xai") return Boolean(cfg.xai?.key && cfg.tts?.voice);
if (provider === "system") {
return systemVoices.systemVoicesAvailable() && Boolean(cfg.tts?.voice);
@@@ -55,7 -55,7 +58,8 @@@
export function voiceReady(cfg: AppConfig, voiceId?: string): boolean {
const provider = voiceProvider(cfg);
+ if (provider === "gemini") return Boolean(cfg.tts?.geminiKey && gemini.isSupportedVoice(voiceId || cfg.tts?.voice));
+ if (provider === "openai") return Boolean(cfg.openai?.key && (voiceId || cfg.tts?.voice));
if (provider === "xai") return Boolean(cfg.xai?.key && (voiceId || cfg.tts?.voice));
if (provider === "system") {
return systemVoices.systemVoicesAvailable() && Boolean(voiceId || cfg.tts?.voice);
@@@ -91,7 -91,7 +95,8 @@@ export async function listVoices
search?: fish.VoiceSearch,
): Promise<elevenlabs.Voice[]> {
const provider = voiceProvider(cfg);
+ if (provider === "gemini") return cfg.tts?.geminiKey ? gemini.listVoices() : [];
+ if (provider === "openai") return cfg.openai?.key ? openai.listVoices() : [];
if (provider === "xai") return cfg.xai?.key ? grok.listVoices(cfg.xai.key) : [];
if (provider === "system") return systemVoices.listSystemVoices(run);
if (provider === "chatterbox") {
@@@ -113,9 -113,15 +118,16 @@@ export async function addSharedVoice(cf
return elevenlabs.addSharedVoice(credential.token, credential.api, publicOwnerId, voiceId, name);
}
-export function speak(cfg: AppConfig, text: string, voiceId?: string, run?: systemVoices.Runner) {
+export function speak(cfg: AppConfig, text: string, voiceId?: string, run?: systemVoices.Runner, signal?: AbortSignal) {
const provider = voiceProvider(cfg);
+ if (provider === "gemini") {
+ const key = cfg.tts?.geminiKey;
+ if (!key) throw new NoVoiceConfigured("key", "Add a Gemini API key in Settings to use Gemini voice.");
+ const voice = voiceId || cfg.tts?.voice;
+ if (!voice) throw new NoVoiceConfigured("voice");
+ return gemini.synthesize(text, voice, key, cfg.tts?.model);
+ }
+ if (provider === "openai") return openai.synthesize(text, voiceId || cfg.tts?.voice || "", cfg.openai?.key || "", signal);
if (provider === "xai") {
const key = cfg.xai?.key;
if (!key) throw new NoVoiceConfigured("key", "Add an xAI key in Settings to use Grok voice.");
diff --cc src/components/VoiceSettings.test.ts
index a020d4a42a,ef924e2214..003d2010a9
--- a/src/components/VoiceSettings.test.ts
+++ b/src/components/VoiceSettings.test.ts
@@@ -83,13 -82,13 +83,13 @@@ describe("VoiceSettings", () =>
expect(onPatch).not.toHaveBeenCalled();
});
- it("offers OpenAI alongside the existing providers", async () => {
- it("lays the six voice services out in two rows", async () => {
++ it("lays the seven voice services out four to a row, OpenAI beside the other online services", async () => {
fixture.api.mockResolvedValue({ voices: [] });
await render(bot("pepper"), vi.fn());
const radios = [...host.querySelectorAll<HTMLElement>('[role="radiogroup"] [role="radio"]')];
- expect(radios.map((radio) => radio.textContent)).toEqual(["ElevenLabs", "Fish Audio", "OpenAI", "Grok (xAI)", "Built-in Mac voices", "Chatterbox (local)"]);
- expect(radios.map((radio) => radio.textContent)).toEqual(["ElevenLabs", "Fish Audio", "Grok (xAI)", "Gemini", "Built-in Mac voices", "Chatterbox (local)"]);
++ expect(radios.map((radio) => radio.textContent)).toEqual(["ElevenLabs", "Fish Audio", "OpenAI", "Grok (xAI)", "Gemini", "Built-in Mac voices", "Chatterbox (local)"]);
expect(radios.map((radio) => radio.className.match(/col-span-\d/)?.[0])).toEqual([
- "col-span-1", "col-span-1", "col-span-1", "col-span-1", "col-span-1", "col-span-1",
- "col-span-2", "col-span-2", "col-span-2", "col-span-2", "col-span-2", "col-span-2",
++ "col-span-1", "col-span-1", "col-span-1", "col-span-1", "col-span-1", "col-span-1", "col-span-1",
]);
});
});
diff --cc src/components/VoiceSettings.tsx
index 7965ed1d28,c77dc2fa51..e8fa6a5d04
--- a/src/components/VoiceSettings.tsx
+++ b/src/components/VoiceSettings.tsx
@@@ -203,7 -201,7 +206,7 @@@ export function VoiceSettings(
.finally(() => current() && setAddingVoice(null));
};
- const setProvider = (next: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "openai") => {
- const setProvider = (next: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini") => {
++ const setProvider = (next: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini" | "openai") => {
if (next === provider || switching || (next === "system" && !systemVoicesAvailable)) return;
setSwitching(true);
setKeyDraft({ provider: null, value: "" });
@@@ -321,14 -314,14 +324,15 @@@
{!workspaceConfigurationLocked && (
<div className="mt-4">
<div className="mb-2 text-[13px] text-ink-secondary">{t("voice.engine")}</div>
- <div className="grid grid-cols-2 gap-1 rounded-xl bg-inset p-1" role="radiogroup" aria-label={t("voice.engine")}>
- <div className="grid grid-cols-6 gap-1 rounded-xl bg-inset p-1" role="radiogroup" aria-label={t("voice.engine")}>
++ <div className="grid grid-cols-4 gap-1 rounded-xl bg-inset p-1" role="radiogroup" aria-label={t("voice.engine")}>
{([
- { value: "elevenlabs", label: t("voice.elevenlabs.label"), available: true, span: "col-span-2" },
- { value: "fish", label: t("voice.fish.label"), available: true, span: "col-span-2" },
- { value: "xai", label: t("voice.grok.label"), available: true, span: "col-span-2" },
- { value: "gemini", label: "Gemini", available: true, span: "col-span-2" },
- { value: "system", label: t("voice.macBuiltIn"), available: systemVoicesAvailable, span: "col-span-2" },
- { value: "chatterbox", label: t("voice.chatterboxLocal"), available: true, span: "col-span-2" },
+ { value: "elevenlabs", label: t("voice.elevenlabs.label"), available: true, span: "col-span-1" },
+ { value: "fish", label: t("voice.fish.label"), available: true, span: "col-span-1" },
+ { value: "openai", label: "OpenAI", available: true, span: "col-span-1" },
+ { value: "xai", label: t("voice.grok.label"), available: true, span: "col-span-1" },
++ { value: "gemini", label: "Gemini", available: true, span: "col-span-1" },
+ { value: "system", label: t("voice.macBuiltIn"), available: systemVoicesAvailable, span: "col-span-1" },
+ { value: "chatterbox", label: t("voice.chatterboxLocal"), available: true, span: "col-span-1" },
] as const).map((option) => (
<button
key={option.value}
diff --cc src/components/keys/key-catalog.ts
index bd7024dc84,5a227a0728..a851e28864
--- a/src/components/keys/key-catalog.ts
+++ b/src/components/keys/key-catalog.ts
@@@ -117,13 -117,13 +117,13 @@@ export const KEY_CATALOG: readonly KeyE
{ id: "lmStudio", section: "servers", labelKey: "lmStudio.title", purposeKey: "keys.purpose.lmStudio", name: "LM Studio", env: [],
words: ["lm studio", "lmstudio", "llm studio", "local", "bionic"], mark: { icon: Server }, kind: "panel" },
{ id: "openaiCompat", section: "servers", labelKey: "keys.openaiCompat.label", purposeKey: "keys.purpose.openaiCompat", name: "OpenAI-compatible", env: ["OPENAI_COMPAT_API_KEY", "OPENAI_COMPAT_URL"],
- words: ["openai-compatible", "openai compatible", "ollama", "together", "base url", "server", "endpoint"], mark: { icon: Server }, kind: "key",
+ words: ["openai-compatible", "openai compatible", "ollama", "together", "gemini", "google ai studio", "base url", "server", "endpoint"], mark: { icon: Server }, kind: "key",
target: { patch: (value) => ({ openaiCompat: { key: value } }), saved: (config) => flag(config.openaiCompat), placeholder: "…", placeholderKey: "keys.openaiCompat.placeholder",
href: "https://platform.openai.com/docs/api-reference", test: "openaiCompat", analytics: "openai_compat" } },
- { id: "liveCalls", section: "voice", labelKey: "call.live.key", purposeKey: "keys.purpose.liveCalls", name: "OpenAI", env: [],
- words: ["openai", "live calls", "calls", "voice", "talk", "gpt-live"], mark: { icon: Phone }, kind: "uses", uses: "openai" },
+ { id: "liveCalls", section: "voice", labelKey: "keys.openai.label", purposeKey: "keys.purpose.openaiVoice", name: "OpenAI", env: [],
+ words: ["openai", "live calls", "calls", "voice", "talk", "gpt-live", "read aloud", "speech", "tts"], mark: { icon: Phone }, kind: "uses", uses: "openai" },
{ id: "liveKey", section: "voice", labelKey: "keys.label.liveKey", purposeKey: "keys.purpose.liveKey", name: "OpenAI", env: ["OMB_OPENAI_LIVE_KEY"],
- words: ["openai", "live calls", "calls", "voice", "gpt-live"], mark: { icon: Phone }, kind: "key",
+ words: ["openai", "live calls", "calls", "voice", "gpt-live", "azure", "foundry"], mark: { icon: Phone }, kind: "key",
target: { patch: (value) => ({ live: { key: value } }), slot: "openaiLiveKey",
saved: (config) => flag(config.savedKeys?.openaiLiveKey ?? { configured: config.live?.keySource === "live" }),
placeholder: "sk-…", href: "https://platform.openai.com/api-keys", analytics: "openai_live", shape: OPENAI_SHAPE } },
diff --cc src/lib/analytics-allowlist.ts
index b34cdc8104,519c6dd2ad..c8b6480ebb
--- a/src/lib/analytics-allowlist.ts
+++ b/src/lib/analytics-allowlist.ts
@@@ -78,7 -78,7 +78,7 @@@ export type ConnectorResult = (typeof C
export const CALL_MODE = ["turns", "live"] as const;
export const ROOM_MODE = ["chat", "goal"] as const;
export const CLOUD_COMPUTER_SOURCE = ["own_key", "included", "none"] as const;
- export const VOICE = ["elevenlabs", "fish", "system", "chatterbox", "xai", "openai", "none"] as const;
-export const VOICE = ["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini", "none"] as const;
++export const VOICE = ["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini", "openai", "none"] as const;
export const DECIDER = ["jev", "openrouter", "off"] as const;
export const CONNECTORS_MODE = ["managed", "self_hosted", "unavailable"] as const;
export const LOCAL_VM_MODE = ["shared", "per_bot", "pool"] as const;
diff --cc src/locales/en.json
index 10ca44b276,72b18ad1ff..860d0413c6
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@@ -7288,28 -7527,100 +7527,116 @@@
"botAccess.request.allow": "Allow",
"botAccess.request.notNow": "Not now",
"settings.section.botAccess": "Bot access",
- "botAccess.overview.intro": "Who in {team} can view, chat with and edit each bot. Changes apply at once.",
"botAccess.overview.noBots": "There are no team bots yet.",
"botAccess.overview.noPeople": "Nobody but admins is on the team yet.",
- "botAccess.overview.bot": "Bot",
- "botAccess.overview.setForEveryone": "Set for everyone: {bot}",
- "botAccess.overview.cell": "What {name} can do with {bot}",
- "botAccess.overview.toastEveryone": "{bot}: everyone in {team} · {level}",
- "botAccess.overview.toastPerson": "{bot}: {name} · {level}",
+ "botAccess.overview.byBot": "By bot",
+ "botAccess.overview.byPerson": "By person",
+ "botAccess.overview.listBy": "List by",
+ "botAccess.overview.searchBots": "Search bots",
+ "botAccess.overview.searchPeople": "Search people",
+ "botAccess.overview.noBotMatch": "No bot matches",
+ "botAccess.overview.botCount.one": "1 bot",
+ "botAccess.overview.botCount.other": "{count} bots",
+ "botAccess.overview.noBotsForPerson": "{name} has no bots yet.",
+ "botAccess.overview.allPeople": "All people",
+ "botAccess.overview.toastRemoved": "{bot}: removed {name}",
+ "server.browser.waiting": "Waiting for the browser: {name} is using it. This continues by itself when it is free.",
+ "server.browser.waitingTask": "Waiting for the browser: {name} is using it for {task}. This continues by itself when it is free.",
+ "server.browser.free": "The browser is free. Continuing.",
+ "server.browser.stoppedWaiting": "Stopped waiting for the browser.",
+ "composer.queued.capacityStarter": "Queued. Starter runs one thread at a time per bot, so this starts when the one running finishes. A bigger plan runs more.",
+ "composer.queued.seePlans": "See plans",
+ "settings.threads.starter": "Starter runs one thread at a time per bot, and a bigger plan runs more. Work a bot starts for itself still runs, and each bot has its own one.",
+ "botApi.title": "Bot API",
+ "botApi.switch": "Let apps talk to this bot",
+ "botApi.hint": "Apps and scripts send {name} a message with a key and get a reply. {name} answers from its instructions and memory, and uses no tools for them.",
+ "botApi.keyOnce": "Your key is in the command, shown this once. Copy it now: after you leave, YOUR_KEY takes its place.",
+ "botApi.keyHidden": "Put your key in place of YOUR_KEY. Lost it? Make a new one.",
+ "botApi.copy": "Copy",
+ "botApi.copied": "Copied",
+ "botApi.copyFailed": "Couldn’t copy",
+ "botApi.newKey": "New key",
+ "botApi.newKeyConfirm": "A new key replaces the old one. Apps still using the old key stop working.",
+ "botApi.replace": "Replace",
+ "botApi.calls": "{count} calls, last {when}",
+ "botApi.callsOne": "1 call, {when}",
+ "botApi.callsNone": "No calls yet",
+ "botApi.webhooks": "Webhooks: {count} triggers",
+ "botApi.webhooksOne": "Webhooks: 1 trigger",
+ "botApi.webhooksNone": "Webhooks: none",
+ "botApi.notAllowed": "Only people who can edit {name} can change this.",
+ "botApi.error": "Couldn’t change the Bot API. Try again.",
+ "chat.viaBotApi": "Sent through the Bot API",
+ "activity.what.bot-api": "Bot API",
+ "activity.action.bot-api.on": "Turned on Bot API",
+ "activity.action.bot-api.new-key": "Made a new Bot API key",
+ "activity.action.bot-api.off": "Turned off Bot API",
+ "botApi.localOnly": "This address works only on this computer.",
+ "botApi.call.replied": "Replied",
+ "botApi.call.accepted": "Taken, reply not ready",
+ "botApi.call.wrongKey": "Wrong key",
+ "botApi.call.off": "Turned away: Bot API was off",
+ "botApi.call.busy": "Turned away: the bot was busy",
+ "botApi.call.failed": "The bot couldn't answer",
+ "botApi.starter": "Bot API comes with a higher plan.",
+ "botApi.password": "A key is like a password: whoever holds it can read what this bot can read.",
+ "botApi.cantTake": "This bot's AI can't take Bot API calls. Choose another AI to use them.",
+ "grokMove.intro": "Grok Bot has no export button, so each Bot writes down its own setup. Nothing changes in Grok Bot.",
+ "grokMove.step1": "1. Send your Bot this message",
+ "grokMove.step1Hint": "Copy it and send it in your Bot's chat. Do this once per Bot.",
+ "grokMove.roster": "Your Bots on this computer: {names}",
+ "grokMove.copy": "Copy the message",
+ "grokMove.copied": "Copied",
+ "grokMove.copyFailed": "Could not copy",
+ "grokMove.step2": "2. Bring back what it wrote",
+ "grokMove.step2Hint": "Paste its whole reply here, or drop the file it made.",
+ "grokMove.found": "Found in Downloads: {names}",
+ "grokMove.useFound": "Use these",
+ "grokMove.refused": "{file}: {reason}",
+ "grokMove.replyLabel": "Your Bot's reply",
+ "grokMove.replyPlaceholder": "Paste your Bot's whole reply",
+ "grokMove.chooseFile": "Choose a file",
+ "grokMove.back": "Back",
+ "grokMove.import": "Import",
+ "grokMove.importing": "Importing…",
+ "grokMove.another": "Move another Bot",
+ "grokMove.previewTitle": "What would come over",
+ "grokMove.error.notExport": "That doesn't look like what your Bot writes. Copy its whole reply, or choose the file it made.",
+ "grokMove.error.cutOff": "Your Bot's reply looks cut off. Ask it to send the rest as another message in the same shape, then paste both.",
+ "grokMove.error.tooLarge": "That's larger than 4 MB. Ask your Bot to split it into several messages.",
+ "grokMove.error.credentials": "This has passwords or keys in it, so nothing was read: {keys}. Ask your Bot to write it again without them.",
+ "grokMove.error.newerVersion": "This was written for a newer OpenMausBot. Update the app, then try again.",
+ "grokMove.error.unusable": "This couldn't be turned into a bot. Ask your Bot to write it again.",
+ "grokMove.popup.body": "Bring your Bots here, with their skills, routines and memories.",
+ "grokMove.popup.start": "Let's start",
+ "grokMove.count.skills": "Skills",
+ "grokMove.count.routines": "Routines",
+ "grokMove.count.memories": "Memories",
+ "grokMove.count.notes": "Routines saved as notes",
+ "grokMove.pausedPreview": "Routines come over paused.",
+ "grokMove.pausedReport": "Routines are paused. Turn each one off in Grok Bot, then on here.",
+ "grokMove.filesStay": "Files on Grok Bot's computer don't come over. Add any your Bot needs.",
+ "grokMove.appsOne": "1 app needs connecting again here",
+ "grokMove.appsMany": "{count} apps need connecting again here",
+ "grokMove.skillsOff": "A safety check keeps these skills off: {names}",
+ "grokMove.alreadyHere": "Already here: {names}",
+ "grokMove.unreadable": "Couldn't be read: {names}",
+ "grokMove.notAdded": "Couldn't be added: {names}",
- "grokMove.isHere": "{name} is here"
++ "grokMove.isHere": "{name} is here",
+ "voice.openai.description": "Read replies and voice messages with AI-generated voices. Uses your OpenAI API key and is billed by OpenAI based on API usage. Live call settings are separate.",
+ "voice.openai.missingKey": "Add an OpenAI API key in Settings → API keys on the host to use readout.",
+ "voice.sample": "Good morning. The tests passed overnight, and I left two notes for you in the chat.",
+ "keys.purpose.openaiVoice": "Read replies aloud and make live calls with your OpenAI API key",
+ "voice.openai.error.key": "Add an OpenAI API key in Settings → API keys to read replies aloud.",
+ "voice.openai.error.auth": "OpenAI rejected the API key or its Realtime access. Check the key and project permissions in Settings.",
+ "voice.openai.error.rateLimit": "OpenAI speech is rate limited or out of API credits. Check your API usage before trying again.",
+ "voice.openai.error.timeout": "OpenAI speech timed out. No audio was played for this segment.",
+ "voice.openai.error.connection": "OpenAI speech was interrupted. Check your connection and proxy settings.",
+ "voice.openai.error.empty": "OpenAI returned no speech audio for this segment.",
+ "voice.openai.error.invalid": "OpenAI returned an unexpected speech response.",
+ "voice.openai.error.limit": "OpenAI speech exceeded the 8 MiB limit for one segment.",
+ "voice.openai.error.cancelled": "OpenAI speech was cancelled.",
+ "voice.openai.error.failed": "OpenAI could not generate speech for this segment. Check your API access and usage.",
+ "voice.openai.error.voice": "Choose an OpenAI voice before reading replies aloud.",
+ "keys.purpose.openaiModelsVoice": "OpenAI models, reply readout and live calls"
}
diff --cc src/state/config-status.ts
index 67a559fcf5,c33865972e..c734918fbe
--- a/src/state/config-status.ts
+++ b/src/state/config-status.ts
@@@ -69,7 -75,7 +75,7 @@@ export interface ConfigStatus
configured: boolean;
ready: boolean;
voice: string;
- provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "openai";
- provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini";
++ provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini" | "openai";
baseUrl?: string;
model?: string;
/** Fish Audio speech model; present only while Fish is the provider. */