Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
feat(tts): add Gemini speech generation provider
Krishna Dobhal48182ef5c48c
diff --git a/docs/verification/README.md b/docs/verification/README.mdindex 0e3222533e..39c53feed6 100644--- a/docs/verification/README.md+++ b/docs/verification/README.md@@ -321,6 +321,10 @@ desktop routing, cancellation, and computer authority cleanup.## Evidence+The [Gemini speech fixture](gemini-speech.md) checks write-only credentials,+voice selection and WAV synthesis against an offline provider in an isolated+server, with manual steps for real Google access and playback.+The [persistence responsiveness benchmark](persistence-performance.md) measuressynthetic message/log bursts and history scans, with isolated chat, visibilityand packaged-worker checks. It is not a production capacity qualification.diff --git a/docs/verification/gemini-speech.md b/docs/verification/gemini-speech.mdnew file mode 100644index 0000000000..1ee4958ae1--- /dev/null+++ b/docs/verification/gemini-speech.md@@ -0,0 +1,32 @@+# Gemini speech++Run the offline provider and isolated server fixtures:++```sh+node node_modules/vitest/vitest.mjs run server/tts/gemini.test.ts scripts/testing/key-readback.e2e.test.ts+```++The server fixture uses `launchVerificationServer`, a temporary home and the+fake engine. It restarts only that child with `OMB_GEMINI_TTS_API` pointing to+a loopback stand-in. No Google account, real credential or microphone is used.++The checks save and remove the Gemini key through `/api/config`, including+external credential storage, and verify masked status in the real Keys row.+They select Gemini, read `/api/tts/voices`, synthesize with a bot voice override+through `/api/tts/speak`, and verify WAV bytes and content type. Switching from+Chatterbox clears its model and voice selection. The provider tests also cover+the Interactions request contract, invalid audio and sanitized provider errors.+The server test logs its fixture URL, data directory and persistent log path.++The transport follows Google's current+[Gemini 3.8 speech contract](https://aistudio.google.com/docs/speech-generation):+`POST /v1beta/interactions`, a verbatim text input, single-speaker speech config+and WAV output.++For a manual desktop check, select Gemini under the bot's Voice settings, save+a Google AI Studio API key, select either Gemini 3.8 speech model, choose a voice+and play the sample. Enable spoken replies, send a message, and request a voice+note. Check another voice and both models. This verifies real Google access,+audio playback and subjective quality, which the offline fixture cannot prove.+The existing separate OpenAI Live call engine is unchanged; Gemini is available+where speech uses the configured TTS provider.diff --git a/electron/credential-patch.mjs b/electron/credential-patch.mjsindex 22a7a76d5a..43d0a5b891 100644--- a/electron/credential-patch.mjs+++ b/electron/credential-patch.mjs@@ -6,6 +6,7 @@ export const CREDENTIAL_PATCH = {opencodeGoApiKey: (value) => ({ opencodeGo: { apiKey: value } }),ttsKey: (value) => ({ tts: { key: value } }),fishAudioKey: (value) => ({ tts: { fishKey: value } }),+ geminiTtsKey: (value) => ({ tts: { geminiKey: value } }),jevApiKey: (value) => ({ decider: { key: value } }),openrouterDeciderKey: (value) => ({ decider: { openrouterKey: value } }),workersAiToken: (value) => ({ decider: { workersAiToken: value } }),diff --git a/electron/workspace-credentials.mjs b/electron/workspace-credentials.mjsindex 0f749ac518..70fa467f04 100644--- a/electron/workspace-credentials.mjs+++ b/electron/workspace-credentials.mjs@@ -3,6 +3,7 @@ export const WORKSPACE_CREDENTIALS = [{ section: "box", field: "token", name: "boxToken", env: "BOX_TOKEN" },{ section: "tts", field: "key", name: "ttsKey", env: "OMB_TTS_KEY" },{ section: "tts", field: "fishKey", name: "fishAudioKey", env: "OMB_FISH_AUDIO_API_KEY" },+ { section: "tts", field: "geminiKey", name: "geminiTtsKey", env: "OMB_GEMINI_API_KEY" },{ section: "decider", field: "key", name: "jevApiKey", env: "OMB_JEV_API_KEY" },{ section: "decider", field: "openrouterKey", name: "openrouterDeciderKey", env: "OMB_OPENROUTER_DECIDER_KEY" },{ section: "decider", field: "workersAiToken", name: "workersAiToken", env: "OMB_WORKERS_AI_TOKEN" },diff --git a/scripts/testing/key-readback.e2e.test.ts b/scripts/testing/key-readback.e2e.test.tsindex b7cd64f11c..8d57305237 100644--- a/scripts/testing/key-readback.e2e.test.ts+++ b/scripts/testing/key-readback.e2e.test.ts@@ -64,6 +64,16 @@ beforeAll(async () => {if (url.startsWith("/composio/tool_router/session")) {return reply(201, { session_id: "trs_readback", mcp: { type: "http", url: "https://app.composio.dev/tool_router/v3/trs_readback/mcp" }, config: { user_id: "openmausbot_readback" } });}+ if (url === "/gemini/interactions") {+ const input = JSON.parse(raw);+ if (req.headers["x-goog-api-key"] !== "fixture-gemini-secret" || input.generation_config.speech_config[0].voice !== "Puck") return reply(400, {});+ const wav = Buffer.alloc(46);+ wav.write("RIFF"); wav.writeUInt32LE(38, 4); wav.write("WAVEfmt ", 8);+ wav.writeUInt32LE(16, 16); wav.writeUInt16LE(1, 20); wav.writeUInt16LE(1, 22);+ wav.writeUInt32LE(24000, 24); wav.writeUInt32LE(48000, 28); wav.writeUInt16LE(2, 32);+ wav.writeUInt16LE(16, 34); wav.write("data", 36); wav.writeUInt32LE(2, 40);+ return reply(200, { steps: [{ type: "model_output", content: [{ type: "audio", mime_type: "audio/wav", data: wav.toString("base64") }] }] });+ }if (url.startsWith("/eleven/voices")) return reply(200, { voices: [] });if (url.startsWith("/fish/model")) return reply(200, { items: [], total: 0 });return reply(404, { error: "not in the stand-in" });@@ -79,6 +89,7 @@ beforeAll(async () => {const env = {...verificationServerEnvironment({}, fixture.info.dataDir, Number(new URL(fixture.info.url).port)),OMB_BOAT_API: origin, OMB_COMPOSIO_API: `${origin}/composio`, OMB_COMPOSIO_TOOLKITS_API: `${origin}/composio`,+ OMB_GEMINI_TTS_API: `${origin}/gemini`,OMB_ELEVENLABS_API: `${origin}/eleven`, OMB_FISH_AUDIO_API: `${origin}/fish`, OMB_POSTIZ_CLOUD_URL: `${origin}/postiz`,};const log = openSync(fixture.info.logPath, "a", 0o600);@@ -104,7 +115,7 @@ it("saves every kind of credential, reads it back and shows it masked to its lassetLocale("en");expect(saveds.map((entry) => entry.id)).toEqual(["openai", "anthropic", "xai", "openrouter", "mistral", "cerebras", "groq", "greenference", "meta", "deepseek", "opencodeGo", "openaiCompat",- "liveKey", "elevenlabs", "fishAudio", "box", "composio", "treg", "postiz", "jev", "openrouterHelper", "workersAi", "imageOpenai", "imageCustom",+ "liveKey", "elevenlabs", "geminiTts", "fishAudio", "box", "composio", "treg", "postiz", "jev", "openrouterHelper", "workersAi", "imageOpenai", "imageCustom",]);for (const storage of ["", "?secretStorage=external"]) {for (const entry of saveds) {@@ -132,3 +143,18 @@ it("saves every kind of credential, reads it back and shows it masked to its las"GET /sandboxes", "POST /composio/tool_router/session", "GET /eleven/voices", "GET /fish/model", "POST /jev/v1/systemone", "POST /alpha/decisions", "POST /postiz/mcp",]));}, hostTimeout(180_000));++it("configures Gemini speech and synthesizes WAV through the isolated server", async () => {+ expect((await call("PUT", "/api/config", { tts: { provider: "gemini", geminiKey: "fixture-gemini-secret", voice: "Kore" } })).status).toBe(200);+ const status = (await call("GET", "/api/config")).body;+ expect(status.tts).toMatchObject({ provider: "gemini", configured: true, ready: true, model: "gemini-3.8-flash-lite-tts" });+ expect(JSON.stringify(status)).not.toContain("fixture-gemini-secret");+ expect((await call("GET", "/api/tts/voices")).body.voices).toEqual(expect.arrayContaining([{ id: "Puck", label: "Puck" }]));+ const response = await fetch(`${fixture.info.url}/api/tts/speak`, { method: "POST", headers: { "content-type": "application/json", origin: fixture.info.url }, body: JSON.stringify({ text: "Hello from the fixture", voiceId: "Puck" }) });+ expect(response.status).toBe(200);+ expect(response.headers.get("content-type")).toBe("audio/wav");+ expect(Buffer.from(await response.arrayBuffer()).toString("ascii", 0, 4)).toBe("RIFF");+ expect((await call("PUT", "/api/config", { tts: { provider: "chatterbox", model: "fixture-local-model" } })).status).toBe(200);+ expect((await call("PUT", "/api/config", { tts: { provider: "gemini" } })).body.tts).toMatchObject({ voice: "", model: "gemini-3.8-flash-lite-tts" });+ console.log(JSON.stringify({ geminiSpeech: "passed", fixture: fixture.info }));+});diff --git a/server/config.ts b/server/config.tsindex 978199ece1..02cdb0100f 100644--- a/server/config.ts+++ b/server/config.ts@@ -380,12 +380,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`) or "chatterbox" (local; `baseUrl`, `model`). */+ /** `provider`: "elevenlabs" (default, `key`), "fish" (`fishKey`, `fishModel`), "system", "xai" (`xai.key`), "gemini" (`geminiKey`, `model`) or "chatterbox" (local; `baseUrl`, `model`). */tts: z.object({key: optionalText,fishKey: optionalText,+ geminiKey: optionalText,voice: optionalText,- provider: z.enum(["elevenlabs", "fish", "system", "chatterbox", "xai"]).optional(),+ provider: z.enum(["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini"]).optional(),baseUrl: z.string().trim()@@ -507,7 +508,7 @@ export interface AppConfig extends HelperConfig {/** 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"; 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 };decider?: DeciderConfig;imageGen?: ImageGenerationConfig;live?: { key?: string; voice?: string; readTypedReplies?: boolean; idleMinutes?: number };@@ -794,6 +795,7 @@ export function loadConfig(): AppConfig {const presetVoice = process.env.OMB_TTS_DEFAULT_VOICE?.trim();if (presetVoice && !cfg.tts.voice?.trim() && (cfg.tts.provider ?? "elevenlabs") === "elevenlabs") cfg.tts.voice = presetVoice;if (process.env.OMB_FISH_AUDIO_API_KEY !== undefined) cfg.tts.fishKey = process.env.OMB_FISH_AUDIO_API_KEY;+ if (process.env.OMB_GEMINI_API_KEY !== undefined) cfg.tts.geminiKey = process.env.OMB_GEMINI_API_KEY;cfg.decider = { ...cfg.decider };if (process.env.OMB_JEV_API_KEY !== undefined) cfg.decider.key = process.env.OMB_JEV_API_KEY;if (process.env.OMB_OPENROUTER_DECIDER_KEY !== undefined) cfg.decider.openrouterKey = process.env.OMB_OPENROUTER_DECIDER_KEY; if (process.env.OMB_WORKERS_AI_TOKEN !== undefined) cfg.decider.workersAiToken = process.env.OMB_WORKERS_AI_TOKEN;@@ -842,6 +844,7 @@ export function syncCredentialEnv(patch: Partial<Omit<AppConfig, "threads" | "ne[patch.opencodeGo?.apiKey, "OPENCODE_API_KEY"],[patch.tts?.key, "OMB_TTS_KEY"],[patch.tts?.fishKey, "OMB_FISH_AUDIO_API_KEY"],+ [patch.tts?.geminiKey, "OMB_GEMINI_API_KEY"],[patch.decider?.key, "OMB_JEV_API_KEY"],[patch.decider?.openrouterKey, "OMB_OPENROUTER_DECIDER_KEY"], [patch.decider?.workersAiToken, "OMB_WORKERS_AI_TOKEN"],[patch.imageGen?.key, "OMB_OPENAI_IMAGE_KEY"],diff --git a/server/credential-env.ts b/server/credential-env.tsindex a33add7372..da9dc79986 100644--- a/server/credential-env.ts+++ b/server/credential-env.ts@@ -22,6 +22,7 @@ export const WORKSPACE_CREDENTIAL_ENV = ["OPENCODE_API_KEY","OMB_TTS_KEY","OMB_FISH_AUDIO_API_KEY",+ "OMB_GEMINI_API_KEY","OMB_JEV_API_KEY","OMB_OPENROUTER_DECIDER_KEY","OMB_WORKERS_AI_TOKEN",diff --git a/server/credential-request.test.ts b/server/credential-request.test.tsindex 1a2cee5ae9..30ce1f4dbd 100644--- a/server/credential-request.test.ts+++ b/server/credential-request.test.ts@@ -21,6 +21,7 @@ const MAPPINGS: Array<[ConfigCredentialTargetId, CredentialConfig]> = [["opencodeGoApiKey", { opencodeGo: { apiKey: "secret" } }],["ttsKey", { tts: { key: "secret" } }],["fishAudioKey", { tts: { fishKey: "secret" } }],+ ["geminiTtsKey", { tts: { geminiKey: "secret" } }],["openaiImageApiKey", { imageGen: { key: "secret" } }],["composioApiKey", { composio: { apiKey: "secret" } }],["openaiApiKey", { openai: { key: "secret" } }],@@ -66,13 +67,13 @@ describe("credential request allowlist", () => {expect(credentialIsConfigured({ tts: { key: "" } }, "ttsKey")).toBe(false);expect(credentialIsConfigured({ tts: { fishKey: "secret" } }, "fishAudioKey")).toBe(true);expect(credentialIsConfigured({ tts: { fishKey: "" } }, "fishAudioKey")).toBe(false);- expect(Object.keys(CREDENTIAL_TARGETS)).toHaveLength(17);+ expect(Object.keys(CREDENTIAL_TARGETS)).toHaveLength(18);});// The desktop's encrypted store has a slot only for these; a provider key goes to the server's config, as Settings does.it("names the desktop slot a key is saved in, and none for a provider key or the 1Password token", () => {expect(Object.keys(CREDENTIAL_TARGETS).filter((id) => desktopCredentialSlot(id as never)).sort()).toEqual(- ["boxToken", "composioApiKey", "fishAudioKey", "openaiImageApiKey", "opencodeGoApiKey", "ttsKey", "xaiApiKey"],+ ["boxToken", "composioApiKey", "fishAudioKey", "geminiTtsKey", "openaiImageApiKey", "opencodeGoApiKey", "ttsKey", "xaiApiKey"],);expect(desktopCredentialSlot("anthropicApiKey")).toBeNull();expect(desktopCredentialSlot("onePasswordToken")).toBeNull();diff --git a/server/drivers/agents-catalog-goldens/bridged.tools-list.json b/server/drivers/agents-catalog-goldens/bridged.tools-list.jsonindex b31e1ee972..ccf0d3395c 100644--- a/server/drivers/agents-catalog-goldens/bridged.tools-list.json+++ b/server/drivers/agents-catalog-goldens/bridged.tools-list.json@@ -243,6 +243,7 @@"boxToken","opencodeGoApiKey","ttsKey",+ "geminiTtsKey","fishAudioKey","openaiImageApiKey","onePasswordToken",diff --git a/server/drivers/agents-catalog-goldens/full.tools-list.json b/server/drivers/agents-catalog-goldens/full.tools-list.jsonindex a143518e6c..4c1cacc5f6 100644--- a/server/drivers/agents-catalog-goldens/full.tools-list.json+++ b/server/drivers/agents-catalog-goldens/full.tools-list.json@@ -819,6 +819,7 @@"boxToken","opencodeGoApiKey","ttsKey",+ "geminiTtsKey","fishAudioKey","openaiImageApiKey","onePasswordToken",diff --git a/server/drivers/agents-catalog-goldens/profiles.json b/server/drivers/agents-catalog-goldens/profiles.jsonindex e2a255c1db..95468b55a5 100644--- a/server/drivers/agents-catalog-goldens/profiles.json+++ b/server/drivers/agents-catalog-goldens/profiles.json@@ -1,7 +1,7 @@{"default": {- "bytes": 58409,- "sha256": "9562c453e4685c5ca69ede2fcb7138b2b455aa9a2fdbfa4478f06f5a718a0385",+ "bytes": 58424,+ "sha256": "7f4dae65ae2ae7ed9a8ab8fd7d640062e72d7e3d3a4b764228cfbdfd32071e8b","tools": ["tool_result_read","list_room_targets",@@ -50,8 +50,8 @@]},"voice": {- "bytes": 59190,- "sha256": "eac49a92507f595d879017cfd47f08361be5f1a5078bd840c08eff1059b74e39",+ "bytes": 59205,+ "sha256": "9e42ec2a7acbb76f4c28be10fe90bafee848a2d11eb0d04dfae5673cf9dcd77e","tools": ["tool_result_read","list_room_targets",@@ -101,8 +101,8 @@]},"shared": {- "bytes": 60674,- "sha256": "ea942863af945881f8bd250611e8c5d3e575855af399d884381bec9fb1c063cd",+ "bytes": 60689,+ "sha256": "e4ebe9f3479cfe26ea9c48afe9011c28234f5ff7c3a832bb8ad3cdd7ce161ecb","tools": ["tool_result_read","list_shared_computers",@@ -153,8 +153,8 @@]},"shared+voice": {- "bytes": 61455,- "sha256": "ba67957c0cd7f41b2d811efb95e9f301c9a2cd7429cd5649459b2f5ee6f13c59",+ "bytes": 61470,+ "sha256": "8ce84a6167c2ccaae961aaee0334fdb57116dd30665a44453e14ee305ba64412","tools": ["tool_result_read","list_shared_computers",@@ -206,8 +206,8 @@]},"skills": {- "bytes": 61228,- "sha256": "44fb483dd17dc7a3207326a08b15a36830277f01e7dec6c5ac99b82c0ad55437",+ "bytes": 61243,+ "sha256": "1f28f159bb9a535c80d56689a5bf1504df5a35c859616c56c3952cc38ef1139b","tools": ["tool_result_read","list_room_targets",@@ -258,8 +258,8 @@]},"skills+voice": {- "bytes": 62009,- "sha256": "562d2e51f73b659a492f121fcc3823a9e017fefb451841d8678b17fdf7c9ce77",+ "bytes": 62024,+ "sha256": "c0fbcbf7ff38be674761572f275c7c7bdfb3c9dba5a72c0749f5561ac3a55ded","tools": ["tool_result_read","list_room_targets",@@ -311,8 +311,8 @@]},"skills+shared": {- "bytes": 63493,- "sha256": "050200414b4d840c2dc81783ec45240ef3630a47b9fc77cd64109351614f912d",+ "bytes": 63508,+ "sha256": "7ac3d83dcc6651dfec42b1f8e2c1ae48cec092eb0bdc7b259901dd54185945a8","tools": ["tool_result_read","list_shared_computers",@@ -365,8 +365,8 @@]},"skills+shared+voice": {- "bytes": 64274,- "sha256": "2b1428a64a26703de1ae9b6a1bc8ef3d872aca317f68efccff320ce8068befd9",+ "bytes": 64289,+ "sha256": "052118ba3beb16e05b1adb8b73d67bd85f5bd90d58c135f0e3f72eca34bca74a","tools": ["tool_result_read","list_shared_computers",@@ -420,8 +420,8 @@]},"non-chief": {- "bytes": 49193,- "sha256": "66a8e259488f939a8e1bf50851839baca4a71d4c51a702f0acbc280cd86c843b",+ "bytes": 49208,+ "sha256": "465f70220d93f34a4b14e74ba1b818c074d60a51e74b43f235fdfbd1ea9de97b","tools": ["tool_result_read","list_room_targets",@@ -463,8 +463,8 @@]},"voice+non-chief": {- "bytes": 49974,- "sha256": "10e2b956f6ba71c20b5f2c9728dc6b4259675b88c0ed5b28dc7ea652555f5e7a",+ "bytes": 49989,+ "sha256": "98f26569b5b826374ffae5ac25cb2d2196196c613b2d1649680ee40abe016202","tools": ["tool_result_read","list_room_targets",@@ -507,8 +507,8 @@]},"shared+non-chief": {- "bytes": 51458,- "sha256": "b0d9a111b4b1547d2c127dc78cbbbd5fad3e0e6c815bf8ee772184f708e50872",+ "bytes": 51473,+ "sha256": "1d56249ffbbe08e1a789f4ff73162dffd060ea995be36b90a7b8d701505697ac","tools": ["tool_result_read","list_shared_computers",@@ -552,8 +552,8 @@]},"shared+voice+non-chief": {- "bytes": 52239,- "sha256": "3aa8ab7533a5a267dcbb5fcf1e3d4662e11d250ec0fc68243b91cf85c880dcca",+ "bytes": 52254,+ "sha256": "1e8ad9080b2d58a41173ddd42e5d633a51b41096992d247ff4eb6b085ca812d9","tools": ["tool_result_read","list_shared_computers",@@ -598,8 +598,8 @@]},"skills+non-chief": {- "bytes": 52012,- "sha256": "9269423c527a98b93691303eea784d19cad19ae4e0ffc7661558b6b6d96a5806",+ "bytes": 52027,+ "sha256": "ff4e61ecedf50aadbcba2b0f988909a818846842f225472c3d1ded004d01be72","tools": ["tool_result_read","list_room_targets",@@ -643,8 +643,8 @@]},"skills+voice+non-chief": {- "bytes": 52793,- "sha256": "92e9e45a2158106a21076c90e196119b6135c63b2f57b0bd7c1833a5df89cfb0",+ "bytes": 52808,+ "sha256": "be24a97e8549bcad7d126194cbe98e406594ac08dddd5fcf467aab12c01218de","tools": ["tool_result_read","list_room_targets",@@ -689,8 +689,8 @@]},"skills+shared+non-chief": {- "bytes": 54277,- "sha256": "eeb50a822802a148819872bd9f3269d811bd8e3c3e2df0769332a51be502cce2",+ "bytes": 54292,+ "sha256": "1fa4e5154b22b6a754fab892c2570ebce90b2ca0ed33895365599526d81d0ba9","tools": ["tool_result_read","list_shared_computers",@@ -736,8 +736,8 @@]},"skills+shared+voice+non-chief": {- "bytes": 55058,- "sha256": "7298d8234cafa2ac30a85b20af5cacca4a0a550fc84af037e6d5f730c988f1ed",+ "bytes": 55073,+ "sha256": "5cfc4c909c2ff8889a4210dec2c2e89782ee55ffa699d7e9b9ca43f6f7e4f580","tools": ["tool_result_read","list_shared_computers",@@ -784,8 +784,8 @@]},"skills+shared+voice+cloud-home": {- "bytes": 64040,- "sha256": "58dbe3d5123035455534cb47be9de9c8f200a56a69a35734c64600a53599c9f3",+ "bytes": 64055,+ "sha256": "c3a862106847b4e149eb064591b2990e77d76930985cea83d26111c8c060b161","tools": ["tool_result_read","list_shared_computers",@@ -839,8 +839,8 @@]},"skills+shared+voice+non-chief+cloud-home": {- "bytes": 54824,- "sha256": "297cbcbd0d26fc91384fa50919621e94d21773e6c16e92abe30335e65b2db2af",+ "bytes": 54839,+ "sha256": "fdd1a29449e5f3e61e781c54854160b0ad829c6a06a46fc513e6d4e0bfa27bcc","tools": ["tool_result_read","list_shared_computers",@@ -887,8 +887,8 @@]},"skills+shared+voice+escalations": {- "bytes": 65104,- "sha256": "cf4ff32466e78a0d325ed21d69e6b718df04e52aa476d4df42bb706f8d74852b",+ "bytes": 65119,+ "sha256": "f14248b0e6b51dc8e0ed73a626bfe33b70722c85b5969803ceae638c64c40838","tools": ["tool_result_read","list_shared_computers",@@ -943,8 +943,8 @@]},"skills+shared+voice+escalations+x": {- "bytes": 68943,- "sha256": "802eec8e0474ebeb267b97647389cf9b9faa3be22f837a16a0730a9737dc3dc5",+ "bytes": 68958,+ "sha256": "2c108c361e439faed9d9d192452540b9c745178cf99fc3ab4ff6230fd9c14f48","tools": ["tool_result_read","list_shared_computers",@@ -1003,8 +1003,8 @@]},"skills+shared+voice+escalations+x+team": {- "bytes": 69575,- "sha256": "c62f12910c8534088d25b903ba6f70de139b39d90f722ecb3c1c0221f8974a99",+ "bytes": 69590,+ "sha256": "4e8d7e1c544b8dad1e0c6014fc2e5e7904bbd7296c1ee97a7c0443854b95d7d2","tools": ["tool_result_read","list_shared_computers",@@ -1064,8 +1064,8 @@]},"default+legacy-switches": {- "bytes": 58409,- "sha256": "9562c453e4685c5ca69ede2fcb7138b2b455aa9a2fdbfa4478f06f5a718a0385",+ "bytes": 58424,+ "sha256": "7f4dae65ae2ae7ed9a8ab8fd7d640062e72d7e3d3a4b764228cfbdfd32071e8b","tools": ["tool_result_read","list_room_targets",@@ -1114,8 +1114,8 @@]},"default+mausbot": {- "bytes": 59060,- "sha256": "87d17f733fe82f6bfef7e0f1984111b8577756adad03ab176858e7dca428a5ec",+ "bytes": 59075,+ "sha256": "996e4139160cf2f47d5d1d80296975dad2b93b5cc001ba1e8724b114e3adc21a","tools": ["tool_result_read","list_room_targets",@@ -1166,8 +1166,8 @@]},"skills+shared+voice+mausbot": {- "bytes": 64925,- "sha256": "9be4d6822fd7e63ccb8f8e6392aa7e303c1a16e3b911be2ea5b4edd9bd446358",+ "bytes": 64940,+ "sha256": "0dd7fed84a76bfd49d3f04e516420855d05e198a30181419e97138e7ba5d49cf","tools": ["tool_result_read","list_shared_computers",@@ -1223,8 +1223,8 @@]},"default+no-computer-pick": {- "bytes": 57197,- "sha256": "ce30f32b2926cbe267fd259c2ed6e51365d6ffa95b08d98623e215378dfe7167",+ "bytes": 57212,+ "sha256": "22db01c71429952fa7cf48795d2fd793179c31aa8f215f1afe3a556837f053f7","tools": ["tool_result_read","list_room_targets",@@ -1272,8 +1272,8 @@]},"default+room": {- "bytes": 50279,- "sha256": "81c95f17de75b178b06d88400c68d3e3a4e6e1b7cd74629b79b7b5002c1b3fb8",+ "bytes": 50294,+ "sha256": "af5c8f93df9533976f3cbb6f3ca414d1c657fa6684f5c8df06e886d5f615edc6","tools": ["tool_result_read","list_room_targets",@@ -1316,8 +1316,8 @@]},"non-chief+room": {- "bytes": 41063,- "sha256": "86fe9bf6cd4a4fb003f88ebbb0c3339d986a93b381be5b1c3ac80c9b14edc639",+ "bytes": 41078,+ "sha256": "644b1aa8dd377c9799e6443cbffac592e78bb8e0eb453a092eb5917349c18dff","tools": ["tool_result_read","list_room_targets",diff --git a/server/key-hint.ts b/server/key-hint.tsindex f94608356d..a0d3cc8474 100644--- a/server/key-hint.ts+++ b/server/key-hint.ts@@ -17,6 +17,7 @@ export function nestedKeyStatus(cfg: AppConfig) {return {ttsKey: keyStatus(cfg.tts?.key),fishAudioKey: keyStatus(cfg.tts?.fishKey),+ geminiTtsKey: keyStatus(cfg.tts?.geminiKey),jevApiKey: keyStatus(cfg.decider?.key),openrouterDeciderKey: keyStatus(cfg.decider?.openrouterKey),workersAiToken: keyStatus(cfg.decider?.workersAiToken),diff --git a/server/routes/config.ts b/server/routes/config.tsindex c14e71de29..ae8f9c6c56 100644--- a/server/routes/config.ts+++ b/server/routes/config.ts@@ -169,6 +169,7 @@ export function createConfigRoutes(deps: ConfigRouteDeps): RouteHandler {// Voice ids are provider-owned: never carry one from one catalog into another.patch.tts = { ...patch.tts, voice: "" };}+ if (changingVoiceProvider && patch.tts?.model === undefined) patch.tts = { ...patch.tts, model: "" };if (providerConfigBusy.get()) return json(res, 409, { error: "provider settings are already being updated" });if (patch.browserProfiles !== undefined && body.expectedBrowserProfiles !== undefined) {const current = (cfg.browserProfiles ?? []).map(({ id, name, browser }) => ({ id, name, ...(browser ? { browser } : {}) }));@@ -524,6 +525,7 @@ export function createConfigRoutes(deps: ConfigRouteDeps): RouteHandler {if (persisted.opencodeGo?.apiKey !== undefined) persisted.opencodeGo.apiKey = "";if (persisted.tts?.key !== undefined) persisted.tts.key = "";if (persisted.tts?.fishKey !== undefined) persisted.tts.fishKey = "";+ if (persisted.tts?.geminiKey !== undefined) persisted.tts.geminiKey = "";if (persisted.decider?.key !== undefined) persisted.decider.key = "";if (persisted.decider?.openrouterKey !== undefined) persisted.decider.openrouterKey = "";if (persisted.decider?.workersAiToken !== undefined) persisted.decider.workersAiToken = "";diff --git a/server/tts/gemini.test.ts b/server/tts/gemini.test.tsnew file mode 100644index 0000000000..2b5ff51527--- /dev/null+++ b/server/tts/gemini.test.ts@@ -0,0 +1,56 @@+import { afterEach, describe, expect, it, vi } from "vitest";+import { describeVoice, listVoices, providerConfigured, speak, voiceReady } from "./index.ts";+import type { AppConfig } from "../config.ts";++const cfg: AppConfig = { tts: { provider: "gemini", geminiKey: "private-gemini-key", voice: "Kore" } };+const wav = Buffer.alloc(46);+wav.write("RIFF");+wav.writeUInt32LE(38, 4);+wav.write("WAVEfmt ", 8);+wav.writeUInt32LE(16, 16);+wav.writeUInt16LE(1, 20);+wav.writeUInt16LE(1, 22);+wav.writeUInt32LE(24000, 24);+wav.writeUInt32LE(48000, 28);+wav.writeUInt16LE(2, 32);+wav.writeUInt16LE(16, 34);+wav.write("data", 36);+wav.writeUInt32LE(2, 40);+const result = (data = wav.toString("base64"), mime_type = "audio/wav") => ({ steps: [{ type: "model_output", content: [{ type: "audio", data, mime_type }] }] });+afterEach(() => vi.unstubAllGlobals());++describe("Gemini speech", () => {+ it("requires its own credential and keeps it out of status", async () => {+ const missing: AppConfig = { tts: { provider: "gemini", key: "eleven", fishKey: "fish" }, xai: { key: "xai" } };+ expect(providerConfigured(missing)).toBe(false);+ expect(voiceReady(missing, "Kore")).toBe(false);+ expect(() => speak(missing, "hello")).toThrow("Gemini API key");+ expect(await listVoices(missing)).toEqual([]);+ expect(JSON.stringify(describeVoice(cfg))).not.toContain("private-gemini-key");+ expect(describeVoice(cfg)).toMatchObject({ configured: true, ready: true, model: "gemini-3.8-flash-lite-tts" });+ expect(await listVoices(cfg)).toEqual(expect.arrayContaining([{ id: "Puck", label: "Puck" }, { id: "Kore", label: "Kore" }]));+ });++ it("uses the documented Interactions contract and honors the bot voice and selected model", async () => {+ const request = vi.fn().mockResolvedValue(Response.json(result()));+ vi.stubGlobal("fetch", request);+ const audio = await speak({ tts: { ...cfg.tts, model: "gemini-3.8-flash-tts" } }, "Hello, नमस्ते!", "Puck");+ expect(audio).toEqual({ bytes: wav, mime: "audio/wav" });+ const [url, init] = request.mock.calls[0];+ expect(url).toBe("https://generativelanguage.googleapis.com/v1beta/interactions");+ expect(init.headers).toEqual({ "x-goog-api-key": "private-gemini-key", "content-type": "application/json" });+ expect(init.redirect).toBe("error");+ expect(JSON.parse(init.body)).toEqual({ model: "gemini-3.8-flash-tts", input: [{ type: "user_input", content: [{ type: "text", text: "Hello, नमस्ते!" }] }], response_format: { type: "audio" }, generation_config: { speech_config: [{ voice: "Puck" }] } });+ });++ it.each([400, 401, 403, 404, 429, 500])("sanitizes HTTP %i failures", async (status) => {+ vi.stubGlobal("fetch", vi.fn().mockResolvedValue(new Response("private-gemini-key private transcript", { status })));+ await expect(speak(cfg, "private transcript")).rejects.toThrow(/Gemini/);+ await expect(speak(cfg, "private transcript")).rejects.not.toThrow(/private/);+ });++ it.each([{}, result(""), result("invalid"), result(Buffer.from("not audio").toString("base64")), result(wav.toString("base64"), "text/plain")])("rejects invalid audio", async (body) => {+ vi.stubGlobal("fetch", vi.fn().mockImplementation(async () => Response.json(body)));+ await expect(speak(cfg, "hello")).rejects.toThrow(/Gemini/);+ });+});diff --git a/server/tts/gemini.ts b/server/tts/gemini.tsnew file mode 100644index 0000000000..e2132b4578--- /dev/null+++ b/server/tts/gemini.ts@@ -0,0 +1,52 @@+import { z } from "zod";+import type { Audio, Voice } from "./elevenlabs.ts";++export const DEFAULT_GEMINI_MODEL = "gemini-3.8-flash-lite-tts";+const API = (process.env.OMB_GEMINI_TTS_API || "https://generativelanguage.googleapis.com/v1beta").replace(/\/+$/, "");+const VOICES = ["Zephyr", "Puck", "Charon", "Kore", "Fenrir", "Leda", "Orus", "Aoede", "Callirrhoe", "Autonoe", "Enceladus", "Iapetus", "Umbriel", "Algieba", "Despina", "Erinome", "Algenib", "Rasalgethi", "Laomedeia", "Achernar", "Alnilam", "Schedar", "Gacrux", "Pulcherrima", "Achird", "Zubenelgenubi", "Vindemiatrix", "Sadachbia", "Sadaltager", "Sulafat"];+const outputSchema = z.object({ steps: z.array(z.object({+ type: z.string(),+ content: z.array(z.object({ type: z.string(), data: z.string().optional(), mime_type: z.string().optional() })).optional(),+})) });++export function listVoices(): Voice[] {+ return VOICES.map((id) => ({ id, label: id }));+}++export async function synthesize(text: string, voiceId: string, key: string, model = DEFAULT_GEMINI_MODEL): Promise<Audio> {+ if (!VOICES.includes(voiceId)) throw new Error("Pick a Gemini voice from the voice list.");+ let response: Response;+ try {+ response = await fetch(`${API}/interactions`, {+ method: "POST", redirect: "error",+ headers: { "x-goog-api-key": key, "content-type": "application/json" },+ body: JSON.stringify({ model: model.trim() || DEFAULT_GEMINI_MODEL,+ input: [{ type: "user_input", content: [{ type: "text", text }] }],+ response_format: { type: "audio" }, generation_config: { speech_config: [{ voice: voiceId }] },+ }),+ signal: AbortSignal.timeout(60_000),+ });+ } catch {+ throw new Error("Could not reach Gemini speech generation. Check your connection and try again.");+ }+ if (!response.ok) {+ await response.body?.cancel();+ // Remote errors can contain the credential or the private transcript.+ if (response.status === 401 || response.status === 403) throw new Error("Gemini rejected the API key or its speech permissions. Check the key in Settings.");+ if (response.status === 429) throw new Error("Gemini speech quota exceeded. Check your plan or try again later.");+ throw new Error(`Gemini speech generation failed (HTTP ${response.status}). Check the model and try again.`);+ }+ const parsed = outputSchema.safeParse(await response.json().catch(() => null));+ if (!parsed.success) throw new Error("Gemini returned an invalid speech response.");+ const audio = parsed.data.steps.filter((step) => step.type === "model_output")+ .flatMap((step) => step.content ?? []).filter((part) => part.type === "audio").at(-1);+ if (!audio?.data || !/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(audio.data)) {+ throw new Error("Gemini returned empty or invalid audio.");+ }+ const bytes = Buffer.from(audio.data, "base64");+ if (audio.mime_type && audio.mime_type.split(";")[0].toLowerCase() !== "audio/wav") throw new Error("Gemini returned an unexpected audio format.");+ if (bytes.length < 44 || bytes.toString("ascii", 0, 4) !== "RIFF" || bytes.toString("ascii", 8, 12) !== "WAVE") {+ throw new Error("Gemini returned invalid WAV audio.");+ }+ return { bytes, mime: "audio/wav" };+}diff --git a/server/tts/index.ts b/server/tts/index.tsindex bb5490c609..27c3d5e5dd 100644--- a/server/tts/index.ts+++ b/server/tts/index.ts@@ -4,9 +4,10 @@ import * as chatterbox from "./chatterbox.ts";import * as elevenlabs from "./elevenlabs.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";+export type VoiceProvider = "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini";export class NoVoiceConfigured extends Error {// Not a parameter property: the harness runs under strip-only `node --experimental-strip-types`, which rejects one at load.@@ -27,11 +28,12 @@ const elevenLabs = (cfg: AppConfig) => voiceCredential(cfg.tts?.key);export function voiceProvider(cfg: AppConfig): VoiceProvider {const provider = cfg.tts?.provider;- return provider === "xai" || provider === "fish" || provider === "system" || provider === "chatterbox" ? provider : "elevenlabs";+ return provider === "gemini" || 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 === "xai") return Boolean(cfg.xai?.key);if (provider === "system") return systemVoices.systemVoicesAvailable();if (provider === "chatterbox") return Boolean(cfg.tts?.baseUrl?.trim());@@ -41,6 +43,7 @@ export function providerConfigured(cfg: AppConfig): boolean {export function voiceConfigured(cfg: AppConfig): boolean {const provider = voiceProvider(cfg);+ if (provider === "gemini") return Boolean(cfg.tts?.geminiKey && cfg.tts?.voice);if (provider === "xai") return Boolean(cfg.xai?.key && cfg.tts?.voice);if (provider === "system") {return systemVoices.systemVoicesAvailable() && Boolean(cfg.tts?.voice);@@ -52,6 +55,7 @@ export function voiceConfigured(cfg: AppConfig): boolean {export function voiceReady(cfg: AppConfig, voiceId?: string): boolean {const provider = voiceProvider(cfg);+ if (provider === "gemini") return Boolean(cfg.tts?.geminiKey && (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);@@ -71,7 +75,7 @@ export function describeVoice(cfg: AppConfig) {voice: cfg.tts?.voice ?? "",provider,baseUrl: provider === "chatterbox" ? (cfg.tts?.baseUrl ?? "") : "",- model: provider === "chatterbox" ? (cfg.tts?.model ?? "") : "",+ model: provider === "gemini" ? (cfg.tts?.model || gemini.DEFAULT_GEMINI_MODEL) : provider === "chatterbox" ? (cfg.tts?.model ?? "") : "",...(provider === "fish" ? { fishModel: cfg.tts?.fishModel ?? fish.DEFAULT_FISH_MODEL } : {}),...(included ? { included: true as const } : {}),};@@ -87,6 +91,7 @@ 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 === "xai") return cfg.xai?.key ? grok.listVoices(cfg.xai.key) : [];if (provider === "system") return systemVoices.listSystemVoices(run);if (provider === "chatterbox") {@@ -110,6 +115,13 @@ export async function addSharedVoice(cfg: AppConfig, publicOwnerId: string, voicexport function speak(cfg: AppConfig, text: string, voiceId?: string, run?: systemVoices.Runner) {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 === "xai") {const key = cfg.xai?.key;if (!key) throw new NoVoiceConfigured("key", "Add an xAI key in Settings to use Grok voice.");diff --git a/shared/credential-request.ts b/shared/credential-request.tsindex edc27019fb..4c3ef4e441 100644--- a/shared/credential-request.ts+++ b/shared/credential-request.ts@@ -28,6 +28,12 @@ export const CREDENTIAL_TARGETS = {placeholder: "Paste your ElevenLabs API key",helpUrl: "https://elevenlabs.io/app/settings/api-keys",},+ geminiTtsKey: {+ label: "Gemini speech API key",+ description: "Generates spoken replies, voice notes and call speech with Gemini.",+ placeholder: "Paste your Google AI Studio API key",+ helpUrl: "https://aistudio.google.com/api-keys",+ },fishAudioKey: {label: "Fish Audio API key",description: "Enables Fish Audio voices in calls.",@@ -121,7 +127,7 @@ export type CredentialConfig = {xai?: { key?: string };box?: { token?: string };opencodeGo?: { apiKey?: string };- tts?: { key?: string; fishKey?: string };+ tts?: { key?: string; fishKey?: string; geminiKey?: string };imageGen?: { key?: string };composio?: { apiKey?: string };openai?: { key?: string };@@ -179,6 +185,8 @@ export function credentialConfigPatch(id: ConfigCredentialTargetId, value: strinreturn { opencodeGo: { apiKey: value } };case "ttsKey":return { tts: { key: value } };+ case "geminiTtsKey":+ return { tts: { geminiKey: value } };case "fishAudioKey":return { tts: { fishKey: value } };case "openaiImageApiKey":@@ -217,6 +225,8 @@ export function credentialIsConfigured(config: CredentialConfig, id: CredentialTreturn Boolean(config.opencodeGo?.apiKey);case "ttsKey":return Boolean(config.tts?.key);+ case "geminiTtsKey":+ return Boolean(config.tts?.geminiKey);case "fishAudioKey":return Boolean(config.tts?.fishKey);case "openaiImageApiKey":diff --git a/src/components/VoiceSettings.test.ts b/src/components/VoiceSettings.test.tsindex 232f269996..ef924e2214 100644--- a/src/components/VoiceSettings.test.ts+++ b/src/components/VoiceSettings.test.ts@@ -82,13 +82,13 @@ describe("VoiceSettings", () => {expect(onPatch).not.toHaveBeenCalled();});- it("lays the voice services out as three online ones above the two on this computer", async () => {+ it("lays the six voice services out in two rows", 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", "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.className.match(/col-span-\d/)?.[0])).toEqual([- "col-span-2", "col-span-2", "col-span-2", "col-span-3", "col-span-3",+ "col-span-2", "col-span-2", "col-span-2", "col-span-2", "col-span-2", "col-span-2",]);});});diff --git a/src/components/VoiceSettings.tsx b/src/components/VoiceSettings.tsxindex 51454d132c..c77dc2fa51 100644--- a/src/components/VoiceSettings.tsx+++ b/src/components/VoiceSettings.tsx@@ -66,10 +66,13 @@ export function VoiceSettings({const [deviceVoice, setDeviceVoice] = useState(() => remoteSystemVoice(bot.id));const usesLocalSystem = localMacClient && deviceProvider === "system";const provider = tts?.provider ?? "elevenlabs";- const searchable = (provider === "fish" || provider === "elevenlabs") && !usesLocalSystem;- const voiceSearch = searchable ? searchedQuery : "";- const pickedVoice = searchable ? (bot.voice ?? "") : "";- const cloudProvider = provider === "fish"+ const searchable = (provider === "fish" || provider === "elevenlabs" || provider === "gemini") && !usesLocalSystem;+ const voiceSearch = searchable && provider !== "gemini" ? searchedQuery : "";+ const pickedVoice = searchable && provider !== "gemini" ? (bot.voice ?? "") : "";+ const cloudProvider = provider === "gemini"+ ? { id: "gemini" as const, name: "Gemini", credential: "geminiTtsKey" as const, configField: "geminiKey" as const,+ placeholder: t("voice.gemini.keyPlaceholder"), keyUrl: "https://aistudio.google.com/api-keys" }+ : provider === "fish"? {id: "fish" as const,name: "Fish Audio",@@ -89,7 +92,7 @@ export function VoiceSettings({}: null;const key = cloudProvider ? voiceKeyDraftValue(keyDraft, cloudProvider.id) : "";- const hostProviderLabel = provider === "fish"+ const hostProviderLabel = provider === "gemini" ? t("voice.hostLabel", { provider: "Gemini" }) : provider === "fish"? t("voice.hostLabel", { provider: t("voice.fish.label") }): provider === "elevenlabs"? t("voice.hostLabel", { provider: t("voice.elevenlabs.label") })@@ -198,7 +201,7 @@ export function VoiceSettings({.finally(() => current() && setAddingVoice(null));};- const setProvider = (next: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai") => {+ const setProvider = (next: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini") => {if (next === provider || switching || (next === "system" && !systemVoicesAvailable)) return;setSwitching(true);setKeyDraft({ provider: null, value: "" });@@ -311,14 +314,14 @@ export function VoiceSettings({{!workspaceConfigurationLocked && (<div className="mt-4"><div className="mb-2 text-[13px] text-ink-secondary">{t("voice.engine")}</div>- {/* Six columns: the three online services share the top row, the two on this computer the bottom one. */}<div className="grid grid-cols-6 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: "system", label: t("voice.macBuiltIn"), available: systemVoicesAvailable, span: "col-span-3" },- { value: "chatterbox", label: t("voice.chatterboxLocal"), available: true, span: "col-span-3" },+ { 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" },] as const).map((option) => (<buttonkey={option.value}@@ -458,6 +461,20 @@ export function VoiceSettings({</div>)}+ {!workspaceConfigurationLocked && provider === "gemini" && (+ <label className="mt-4 block text-[13px] text-ink-secondary">+ {t("voice.gemini.model")}+ <Select value={tts.model || "gemini-3.8-flash-lite-tts"} className="mt-2 w-full" onChange={(event) => {+ void api("/api/config", { method: "PUT", body: JSON.stringify({ tts: { model: event.target.value } }) })+ .then((status: ConfigStatus) => dispatch({ type: "configStatus", config: status }))+ .catch((error: Error) => setError(error.message));+ }}>+ <option value="gemini-3.8-flash-lite-tts">Gemini 3.8 Flash-Lite TTS</option>+ <option value="gemini-3.8-flash-tts">Gemini 3.8 Flash TTS</option>+ </Select>+ </label>+ )}+{configured && (<div className="mt-4"><div className="mb-1.5 text-[13px] text-ink-secondary">{t("voice.title")}</div>@@ -466,8 +483,8 @@ export function VoiceSettings({<VoicePickerkey={provider}value={selectedVoice}- voices={voices}- loading={loadingVoices || voiceQuery.trim() !== searchedQuery}+ voices={provider === "gemini" ? voices.filter((voice) => voice.label.toLowerCase().includes(voiceQuery.trim().toLowerCase())) : voices}+ loading={loadingVoices || (provider !== "gemini" && voiceQuery.trim() !== searchedQuery)}query={voiceQuery}onQuery={setVoiceQuery}onPick={pickVoice}diff --git a/src/components/keys/key-catalog.test.ts b/src/components/keys/key-catalog.test.tsindex ac188c206a..a02b4dd3a0 100644--- a/src/components/keys/key-catalog.test.ts+++ b/src/components/keys/key-catalog.test.ts@@ -54,7 +54,7 @@ describe("every credential has one home on the keys page", () => {// A key saved from a bot's card lands exactly where its Settings row puts it: the same desktop slot, or the same config.it("covers every credential a bot can ask for in a chat, saved where Settings saves it", () => {const homes: Record<keyof typeof CREDENTIAL_TARGETS, KeyId> = {- xaiApiKey: "xai", boxToken: "box", opencodeGoApiKey: "opencodeGo", ttsKey: "elevenlabs", fishAudioKey: "fishAudio",+ xaiApiKey: "xai", boxToken: "box", opencodeGoApiKey: "opencodeGo", ttsKey: "elevenlabs", fishAudioKey: "fishAudio", geminiTtsKey: "geminiTts",openaiImageApiKey: "imageOpenai", onePasswordToken: "onePassword", composioApiKey: "composio", openaiApiKey: "openai",anthropicApiKey: "anthropic", openrouterApiKey: "openrouter", mistralApiKey: "mistral", cerebrasApiKey: "cerebras", groqApiKey: "groq",greenferenceApiKey: "greenference", metaApiKey: "meta", deepseekApiKey: "deepseek",diff --git a/src/components/keys/key-catalog.ts b/src/components/keys/key-catalog.tsindex 2477c222d8..04fd0a236f 100644--- a/src/components/keys/key-catalog.ts+++ b/src/components/keys/key-catalog.ts@@ -40,7 +40,7 @@ export interface KeyTarget {export type KeyId =| "openai" | "anthropic" | "xai" | "openrouter" | "mistral" | "cerebras" | "groq" | "greenference" | "meta" | "deepseek" | "opencodeGo" | "opencodeProviders"- | "lmStudio" | "openaiCompat" | "liveCalls" | "liveKey" | "elevenlabs" | "fishAudio" | "box" | "vps" | "onePassword" | "composio" | "treg" | "postiz"+ | "lmStudio" | "openaiCompat" | "liveCalls" | "liveKey" | "elevenlabs" | "fishAudio" | "geminiTts" | "box" | "vps" | "onePassword" | "composio" | "treg" | "postiz"| "jev" | "openrouterHelper" | "workersAi" | "imageOpenai" | "imageCustom";export type KeyMark = { driverKind: string; preset?: ProviderIconPreset } | { icon: LucideIcon };@@ -133,6 +133,11 @@ export const KEY_CATALOG: readonly KeyEntry[] = [saved: (config) => ({ ...flag(config.savedKeys?.ttsKey ?? { configured: config.tts?.provider === "elevenlabs" && config.tts.configured && !config.tts.included }),...(config.tts?.included ? { included: true } : {}) }),placeholder: "sk_…", href: "https://elevenlabs.io/app/settings/api-keys", analytics: "elevenlabs", shape: /^sk_/ } },+ { id: "geminiTts", section: "voice", labelKey: "keys.label.geminiTts", purposeKey: "keys.purpose.geminiTts", name: "Gemini", env: ["OMB_GEMINI_API_KEY"],+ words: ["google", "gemini", "speech", "voice", "tts"], mark: { icon: AudioLines }, kind: "key",+ target: { patch: (value) => ({ tts: { geminiKey: value } }), slot: "geminiTtsKey",+ saved: (config) => flag(config.savedKeys?.geminiTtsKey), placeholderKey: "voice.gemini.keyPlaceholder", placeholder: "...",+ href: "https://aistudio.google.com/api-keys", analytics: "gemini_tts" } },{ id: "fishAudio", section: "voice", labelKey: "keys.label.fishAudio", purposeKey: "keys.purpose.fishAudio", name: "Fish Audio", env: ["OMB_FISH_AUDIO_API_KEY"],words: ["fish", "fish audio", "voice", "voices", "speech", "tts"], mark: { icon: AudioLines }, kind: "key",target: { patch: (value) => ({ tts: { fishKey: value } }), slot: "fishAudioKey", verifiedOnSave: true,diff --git a/src/lib/analytics-allowlist.test.ts b/src/lib/analytics-allowlist.test.tsindex dcdbab176c..caf9b704f2 100644--- a/src/lib/analytics-allowlist.test.ts+++ b/src/lib/analytics-allowlist.test.ts@@ -77,7 +77,7 @@ describe("app, role and key lists", () => {expect(rows).toEqual({openai: "openai", anthropic: "anthropic", xai: "xai", openrouter: "openrouter", mistral: "mistral", cerebras: "cerebras", groq: "groq",greenference: "greenference", meta: "meta", deepseek: "deepseek", opencodeGo: "opencode_go", openaiCompat: "openai_compat", liveKey: "openai_live",- elevenlabs: "elevenlabs", fishAudio: "fish_audio", box: "boat", composio: "composio", treg: "treg", jev: "jev",+ elevenlabs: "elevenlabs", fishAudio: "fish_audio", geminiTts: "gemini_tts", box: "boat", composio: "composio", treg: "treg", jev: "jev",openrouterHelper: "openrouter_decider", imageOpenai: "openai_image", postiz: "postiz",});for (const provider of Object.values(rows)) expect(KEY_PROVIDER).toContain(provider);@@ -85,7 +85,7 @@ describe("app, role and key lists", () => {it("names a provider for every credential a bot can ask for in chat, and nothing else", () => {const expected = {- boxToken: "boat", xaiApiKey: "xai", opencodeGoApiKey: "opencode_go", ttsKey: "elevenlabs", fishAudioKey: "fish_audio",+ boxToken: "boat", xaiApiKey: "xai", opencodeGoApiKey: "opencode_go", ttsKey: "elevenlabs", fishAudioKey: "fish_audio", geminiTtsKey: "gemini_tts",openaiImageApiKey: "openai_image",onePasswordToken: "onepassword", composioApiKey: "composio", openaiApiKey: "openai", anthropicApiKey: "anthropic",openrouterApiKey: "openrouter", mistralApiKey: "mistral", cerebrasApiKey: "cerebras", groqApiKey: "groq", greenferenceApiKey: "greenference", metaApiKey: "meta",diff --git a/src/lib/analytics-allowlist.ts b/src/lib/analytics-allowlist.tsindex 08720e92d2..519c6dd2ad 100644--- a/src/lib/analytics-allowlist.ts+++ b/src/lib/analytics-allowlist.ts@@ -14,13 +14,13 @@ export function allow<const T extends string>(value: unknown, list: readonly T[]export const KEY_PROVIDER = ["anthropic", "openai", "openrouter", "openai_compat", "xai", "mistral", "cerebras", "groq", "greenference", "meta", "boat", "composio",- "opencode_go", "custom_endpoint", "elevenlabs", "fish_audio", "jev", "openrouter_decider", "openai_image", "custom_image",+ "opencode_go", "custom_endpoint", "elevenlabs", "fish_audio", "gemini_tts", "jev", "openrouter_decider", "openai_image", "custom_image","openai_live", "onepassword", "treg", "deepseek", "postiz",] as const;export type KeyProvider = (typeof KEY_PROVIDER)[number];const CREDENTIAL_PROVIDER = new Map<string, KeyProvider>(Object.entries({- boxToken: "boat", xaiApiKey: "xai", opencodeGoApiKey: "opencode_go", ttsKey: "elevenlabs", fishAudioKey: "fish_audio",+ boxToken: "boat", xaiApiKey: "xai", opencodeGoApiKey: "opencode_go", ttsKey: "elevenlabs", fishAudioKey: "fish_audio", geminiTtsKey: "gemini_tts",openaiImageApiKey: "openai_image", onePasswordToken: "onepassword", composioApiKey: "composio", openaiApiKey: "openai",anthropicApiKey: "anthropic", openrouterApiKey: "openrouter", mistralApiKey: "mistral", cerebrasApiKey: "cerebras", groqApiKey: "groq",greenferenceApiKey: "greenference", metaApiKey: "meta", deepseekApiKey: "deepseek",@@ -78,7 +78,7 @@ export type ConnectorResult = (typeof CONNECTOR_RESULT)[number];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", "none"] as const;+export const VOICE = ["elevenlabs", "fish", "system", "chatterbox", "xai", "gemini", "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 --git a/src/lib/voice-key-draft.ts b/src/lib/voice-key-draft.tsindex b27c12f375..53ad8929bf 100644--- a/src/lib/voice-key-draft.ts+++ b/src/lib/voice-key-draft.ts@@ -1,4 +1,4 @@-export type CloudVoiceProvider = "elevenlabs" | "fish";+export type CloudVoiceProvider = "elevenlabs" | "fish" | "gemini";export type VoiceKeyDraft = { provider: CloudVoiceProvider | null; value: string };/** Never expose a credential draft after the selected provider changes. */diff --git a/src/locales/de.json b/src/locales/de.jsonindex 991686aa94..41d04a1b33 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Google AI Studio API-Schlüssel einfügen",+ "voice.gemini.model": "Gemini-Sprachmodell",+ "keys.label.geminiTts": "Gemini-Sprach-API-Schlüssel",+ "keys.purpose.geminiTts": "Gemini-Stimmen für gesprochene Antworten, Sprachnachrichten und Anrufe","highlevel.unavailable": "Hier nicht verfügbar.","postiz.description": "Social-Media-Beiträge mit Postiz entwerfen, planen und veröffentlichen.","postiz.connect": "Postiz verbinden",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 22f8bd6d47..0a810e9dbc 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -650,6 +650,10 @@"voice.grok.label": "Grok (xAI)","voice.grok.host": "Host · Grok","voice.grok.sharedKey": "Grok uses this installation’s existing xAI key.",+ "voice.gemini.keyPlaceholder": "Paste your Google AI Studio API key",+ "voice.gemini.model": "Gemini speech model",+ "keys.label.geminiTts": "Gemini speech API key",+ "keys.purpose.geminiTts": "Gemini voices for spoken replies, voice notes and calls","voice.fish.label": "Fish Audio","voice.host": "Host voice","voice.hostLabel": "Host · {provider}",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 0966eed2ed..972a0e6680 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Pega tu clave de API de Google AI Studio",+ "voice.gemini.model": "Modelo de voz de Gemini",+ "keys.label.geminiTts": "Clave de API de voz de Gemini",+ "keys.purpose.geminiTts": "Voces de Gemini para respuestas habladas, notas de voz y llamadas","whop.description": "Productos, enlaces de pago, membresías y pagos mediante la integración oficial de Whop.","hostedMcp.connect": "Conectar {service}","hostedMcp.disconnect": "Desconectar {service}",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex a4f7e85370..5de88a3d05 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Collez votre clé API Google AI Studio",+ "voice.gemini.model": "Modèle de synthèse vocale Gemini",+ "keys.label.geminiTts": "Clé API de synthèse vocale Gemini",+ "keys.purpose.geminiTts": "Voix Gemini pour les réponses vocales, les notes vocales et les appels","highlevel.unavailable": "Non disponible ici.","postiz.description": "Rédigez, planifiez et publiez vos posts sur les réseaux sociaux avec Postiz.","postiz.connect": "Connecter Postiz",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 5131bced21..50233de6bb 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "अपनी Google AI Studio API कुंजी पेस्ट करें",+ "voice.gemini.model": "Gemini वाक् मॉडल",+ "keys.label.geminiTts": "Gemini वाक् API कुंजी",+ "keys.purpose.geminiTts": "बोलकर दिए गए जवाबों, वॉइस नोट और कॉल के लिए Gemini की आवाज़ें","highlevel.unavailable": "यहाँ उपलब्ध नहीं।","postiz.description": "Postiz से सोशल मीडिया पोस्ट का ड्राफ़्ट बनाएँ, शेड्यूल करें और प्रकाशित करें।","postiz.connect": "Postiz कनेक्ट करें",diff --git a/src/locales/it.json b/src/locales/it.jsonindex c6483ba758..0f7dbc22c8 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Incolla la tua chiave API di Google AI Studio",+ "voice.gemini.model": "Modello vocale Gemini",+ "keys.label.geminiTts": "Chiave API vocale Gemini",+ "keys.purpose.geminiTts": "Voci Gemini per risposte vocali, note vocali e chiamate","whop.description": "Prodotti, link di pagamento, abbonamenti e pagamenti tramite l’integrazione ufficiale di Whop.","hostedMcp.connect": "Collega {service}","hostedMcp.disconnect": "Scollega {service}",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex c64474b473..ee856b3b01 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Google AI Studio の API キーを貼り付け",+ "voice.gemini.model": "Gemini 音声合成モデル",+ "keys.label.geminiTts": "Gemini 音声合成 API キー",+ "keys.purpose.geminiTts": "読み上げ、音声メモ、通話に使う Gemini の音声","whop.description": "Whop の公式連携で、商品、支払いリンク、会員登録、決済を扱えます。","hostedMcp.connect": "{service} に接続","hostedMcp.disconnect": "{service} を切断",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 50d23fcdd8..e245c09d9e 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Google AI Studio API 키를 붙여넣으세요",+ "voice.gemini.model": "Gemini 음성 합성 모델",+ "keys.label.geminiTts": "Gemini 음성 합성 API 키",+ "keys.purpose.geminiTts": "답변 읽어주기, 음성 메모 및 통화에 사용하는 Gemini 음성","connectedWorkspaces.localTitle": "이 컴퓨터의 환경","connectedWorkspaces.missing": "없음","connectedWorkspaces.current": "현재",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex f222c55d5d..d88639ad30 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Wklej swój klucz API Google AI Studio",+ "voice.gemini.model": "Model syntezy mowy Gemini",+ "keys.label.geminiTts": "Klucz API syntezy mowy Gemini",+ "keys.purpose.geminiTts": "Głosy Gemini do odpowiedzi głosowych, notatek głosowych i rozmów","whop.description": "Produkty, linki do zamówień, członkostwa i płatności dzięki oficjalnej integracji Whop.","hostedMcp.connect": "Połącz {service}","hostedMcp.disconnect": "Rozłącz {service}",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 6bbc27b71e..4aa67e751a 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Cole sua chave de API do Google AI Studio",+ "voice.gemini.model": "Modelo de voz do Gemini",+ "keys.label.geminiTts": "Chave de API de voz do Gemini",+ "keys.purpose.geminiTts": "Vozes do Gemini para respostas faladas, notas de voz e chamadas","whop.description": "Produtos, links de pagamento, assinaturas e pagamentos pela integração oficial do Whop.","hostedMcp.connect": "Conectar o {service}","hostedMcp.disconnect": "Desconectar o {service}",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex db05912a2f..f1a2be140d 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Вставьте свой API-ключ Google AI Studio",+ "voice.gemini.model": "Модель синтеза речи Gemini",+ "keys.label.geminiTts": "API-ключ синтеза речи Gemini",+ "keys.purpose.geminiTts": "Голоса Gemini для озвучивания ответов, голосовых заметок и звонков","whop.description": "Продукты, ссылки на оплату, подписки и платежи через официальную интеграцию Whop.","hostedMcp.connect": "Подключить {service}","hostedMcp.disconnect": "Отключить {service}",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex ca8e00ce72..4e7e41993b 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Google AI Studio API anahtarınızı yapıştırın",+ "voice.gemini.model": "Gemini konuşma modeli",+ "keys.label.geminiTts": "Gemini konuşma API anahtarı",+ "keys.purpose.geminiTts": "Sesli yanıtlar, sesli notlar ve aramalar için Gemini sesleri","whop.description": "Whop'un resmi entegrasyonu üzerinden ürünler, ödeme bağlantıları, üyelikler ve ödemeler.","hostedMcp.connect": "{service}'u bağla","hostedMcp.disconnect": "{service} bağlantısını kes",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 8b46e1f73f..f3368c2994 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Вставте свій API-ключ Google AI Studio",+ "voice.gemini.model": "Модель синтезу мовлення Gemini",+ "keys.label.geminiTts": "API-ключ синтезу мовлення Gemini",+ "keys.purpose.geminiTts": "Голоси Gemini для озвучення відповідей, голосових нотаток і дзвінків","highlevel.unavailable": "Тут недоступно.","postiz.description": "Створюйте чернетки, плануйте й публікуйте дописи в соцмережах через Postiz.","postiz.connect": "Підключити Postiz",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 047e43cbc8..8ffe206491 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "Dán khóa API Google AI Studio của bạn",+ "voice.gemini.model": "Mô hình giọng nói Gemini",+ "keys.label.geminiTts": "Khóa API giọng nói Gemini",+ "keys.purpose.geminiTts": "Giọng Gemini cho câu trả lời bằng giọng nói, ghi chú thoại và cuộc gọi","whop.description": "Sản phẩm, liên kết thanh toán, tư cách thành viên và thanh toán thông qua tích hợp chính thức của Whop.","hostedMcp.connect": "Kết nối {service}","hostedMcp.disconnect": "Ngắt kết nối {service}",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex b482cf54c5..3758ab2efb 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "貼上你的 Google AI Studio API 金鑰",+ "voice.gemini.model": "Gemini 語音合成模型",+ "keys.label.geminiTts": "Gemini 語音合成 API 金鑰",+ "keys.purpose.geminiTts": "用於朗讀回覆、語音備忘錄和通話的 Gemini 語音","whop.description": "透過 Whop 官方整合管理商品、結帳連結、會員資格與付款。","hostedMcp.connect": "連線 {service}","hostedMcp.disconnect": "中斷 {service} 連線",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 53116034ab..30c43a3d82 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -1,4 +1,8 @@{+ "voice.gemini.keyPlaceholder": "粘贴你的 Google AI Studio API 密钥",+ "voice.gemini.model": "Gemini 语音合成模型",+ "keys.label.geminiTts": "Gemini 语音合成 API 密钥",+ "keys.purpose.geminiTts": "用于朗读回复、语音备忘录和通话的 Gemini 语音","connectedWorkspaces.localTitle": "这台电脑上的环境","connectedWorkspaces.missing": "不存在","connectedWorkspaces.current": "当前",diff --git a/src/state/config-status.ts b/src/state/config-status.tsindex b3d56628b0..9d4532fb8d 100644--- a/src/state/config-status.ts+++ b/src/state/config-status.ts@@ -6,7 +6,7 @@ import type { ModelSelection } from "./store";/** A saved credential: whether it is set and, for admins, its last four characters. The key itself never comes back. */export interface SavedKey { configured: boolean; last4?: string }-export type NestedKeyName = "ttsKey" | "fishAudioKey" | "jevApiKey" | "openrouterDeciderKey" | "workersAiToken" | "openaiImageApiKey" | "customImageApiKey" | "openaiLiveKey";+export type NestedKeyName = "ttsKey" | "fishAudioKey" | "geminiTtsKey" | "jevApiKey" | "openrouterDeciderKey" | "workersAiToken" | "openaiImageApiKey" | "customImageApiKey" | "openaiLiveKey";/** GET /api/config — configured flags only; secrets are never echoed. */export interface ConfigStatus {@@ -64,14 +64,14 @@ export interface ConfigStatus {* providers, never the keys. */opencodeGo?: SavedKey & { providerKeys?: string[] };/** Voice. `configured` = the engine has what it needs (an ElevenLabs or- * Fish Audio key, or a Chatterbox server address); `ready` = that AND a voice, which is+ * Fish Audio, Gemini or xAI key, or a Chatterbox server address); `ready` = that AND a voice, which is* what it takes to actually speak. The key itself is never echoed back;- * `baseUrl`/`model` are Chatterbox settings, not credentials. */+ * `baseUrl` is the Chatterbox address; `model` selects Chatterbox or Gemini speech. */tts?: {configured: boolean;ready: boolean;voice: string;- provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai";+ provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini";baseUrl?: string;model?: string;/** Fish Audio speech model; present only while Fish is the provider. */diff --git a/src/types/ogb.d.ts b/src/types/ogb.d.tsindex df2fd31d88..579936b8eb 100644--- a/src/types/ogb.d.ts+++ b/src/types/ogb.d.ts@@ -415,7 +415,7 @@ const __APP_VERSION__: string;openAtLogin?: { state(): Promise<{ available: boolean; on: boolean }>; set(on: boolean): Promise<{ available: boolean; on: boolean }> };/** Save a provider credential through Electron's OS-backed store. */setCredential?(- name: "composioApiKey" | "xaiApiKey" | "boxToken" | "opencodeGoApiKey" | "ttsKey" | "fishAudioKey" | "jevApiKey" | "openrouterDeciderKey" | "workersAiToken" | "openaiImageApiKey" | "customImageApiKey" | "openaiLiveKey" | "tregApiKey" | "postizApiKey",+ name: "composioApiKey" | "xaiApiKey" | "boxToken" | "opencodeGoApiKey" | "ttsKey" | "fishAudioKey" | "geminiTtsKey" | "jevApiKey" | "openrouterDeciderKey" | "workersAiToken" | "openaiImageApiKey" | "customImageApiKey" | "openaiLiveKey" | "tregApiKey" | "postizApiKey",value: string,): Promise<ConfigStatus>;/** In-app auto-update (packaged app only; dormant in dev). Updates