Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
feat(voice): listen with an ElevenLabs key and speak Thai through Eleven v3
AdityaUmalea0a20bc4805e
diff --git a/server/routes/tts.test.ts b/server/routes/tts.test.tsindex bc9ec334c4..e1a52908f5 100644--- a/server/routes/tts.test.ts+++ b/server/routes/tts.test.ts@@ -68,10 +68,41 @@ describe("transcribe route", () => {expect(answers).toEqual([[400, { error: "content-type must be audio/wav" }]]);});- it("asks for a Fish key when none is saved", async () => {+ it("asks for a Fish Audio or ElevenLabs key when neither is saved", async () => {const { answers } = await call("POST", "/api/tts/transcribe", {}, {} as AppConfig, upload(Buffer.from("x")));expect(answers[0]![0]).toBe(409);- expect((answers[0]![1] as { error: string }).error).toContain("Fish Audio key");+ expect((answers[0]![1] as { error: string }).error).toContain("Fish Audio or ElevenLabs key");+ });++ it("hears through ElevenLabs Scribe with the person's own key when no Fish key is saved", async () => {+ const seen: Array<{ url: string; key: string | null; model: unknown; file: unknown }> = [];+ vi.stubGlobal("fetch", vi.fn(async (url: string, init: RequestInit) => {+ const form = init.body as FormData;+ seen.push({ url, key: new Headers(init.headers).get("xi-api-key"), model: form.get("model_id"), file: form.get("file") });+ return new Response(JSON.stringify({ text: " สวัสดีครับ ", language_code: "tha" }), { status: 200 });+ }));+ const { answers } = await call("POST", "/api/tts/transcribe", {}, { tts: { key: "el-own" } } as AppConfig, upload(Buffer.from("RIFF")));+ expect(answers).toEqual([[200, { text: "สวัสดีครับ" }]]);+ expect(seen).toHaveLength(1);+ expect(seen[0]!.url).toMatch(/\/v1\/speech-to-text$/);+ expect(seen[0]!.key).toBe("el-own");+ expect(seen[0]!.model).toBe("scribe_v2");+ expect(seen[0]!.file).toBeInstanceOf(Blob);+ });++ it("keeps Fish Audio first when both keys are saved", async () => {+ const fetchMock = vi.fn(async () => new Response(JSON.stringify({ text: "from fish" }), { status: 200 }));+ vi.stubGlobal("fetch", fetchMock);+ const { answers } = await call("POST", "/api/tts/transcribe", {}, { tts: { fishKey: "fish-key", key: "el-own" } } as AppConfig, upload(Buffer.from("RIFF")));+ expect(answers).toEqual([[200, { text: "from fish" }]]);+ expect(String((fetchMock.mock.calls[0] as unknown[])[0])).toContain("/v1/asr");+ });++ it("names the Speech to Text permission when ElevenLabs refuses the key", async () => {+ vi.stubGlobal("fetch", vi.fn(async () => new Response(JSON.stringify({ detail: { message: "missing_permissions" } }), { status: 401 })));+ const { answers } = await call("POST", "/api/tts/transcribe", {}, { tts: { key: "el-own" } } as AppConfig, upload(Buffer.from("RIFF")));+ expect(answers[0]![0]).toBe(502);+ expect((answers[0]![1] as { error: string }).error).toContain("Speech to Text permissions");});it("refuses audio over the cap", async () => {@@ -104,3 +135,15 @@ it("keeps the English network refusal and its translation fields", async () => {}]]);} finally { vi.unstubAllGlobals(); }});++it("keeps the English ElevenLabs network refusal and its translation fields", async () => {+ vi.stubGlobal("fetch", vi.fn(async () => { throw new Error("offline"); }));+ try {+ const req = Object.assign(Readable.from([Buffer.from("RIFF")]), { headers: { "content-type": "audio/wav", "content-length": "4" } });+ const { answers } = await call("POST", "/api/tts/transcribe", {}, { tts: { key: "el-own" } } as AppConfig, req as never);+ expect(answers).toEqual([[502, {+ error: "Couldn't reach ElevenLabs to hear you — check your connection.",+ errorKey: "serverError.voice.elevenLabsTranscribeConnection",+ }]]);+ } finally { vi.unstubAllGlobals(); }+});diff --git a/server/routes/tts.ts b/server/routes/tts.tsindex 68ba004fc5..6b934c1199 100644--- a/server/routes/tts.ts+++ b/server/routes/tts.ts@@ -1,7 +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, speaking a line, and hearing speech. Scopes are keyed by path in server/request-auth.ts.import type { AppConfig } from "../config.ts";+import { voiceCredential } from "../included-services.ts";import { redactSecretsInText } from "../redact.ts";+import * as elevenlabs from "../tts/elevenlabs.ts";import * as fish from "../tts/fish.ts";import { voiceFailure } from "../tts/errors.ts";import * as tts from "../tts/index.ts";@@ -89,8 +91,11 @@ export function createTtsRoutes(deps: TtsRouteDeps): RouteHandler {req.resume();return json(res, 400, { error: "content-type must be audio/wav" });}+ // Fish Audio first, as before; without it the person's own ElevenLabs key (never the plan's included voice).const key = cfg.tts?.fishKey;- if (!key) {+ const own = key ? null : voiceCredential(cfg.tts?.key);+ const eleven = own?.included ? null : own;+ if (!key && !eleven) {req.resume();return json(res, 409, userError("serverError.voice.fishKeyRequired"));}@@ -112,7 +117,8 @@ export function createTtsRoutes(deps: TtsRouteDeps): RouteHandler {});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) });+ const text = key ? await fish.transcribe(audio, mime, key) : await elevenlabs.transcribe(audio, mime, eleven!.token, eleven!.api);+ return json(res, 200, { text });} catch (e) {return json(res, 502, { error: e instanceof Error ? e.message : String(e), ...userErrorFields(e) });}diff --git a/server/tts/elevenlabs.test.ts b/server/tts/elevenlabs.test.tsindex b394e16da5..39e8b02df7 100644--- a/server/tts/elevenlabs.test.ts+++ b/server/tts/elevenlabs.test.ts@@ -1,7 +1,22 @@import { createServer, type Server } from "node:http";import { afterAll, beforeAll, describe, expect, it } from "vitest";-import { addSharedVoice, listVoices, synthesize, verifyKey } from "./elevenlabs.ts";+import { addSharedVoice, listVoices, speechModel, synthesize, verifyKey } from "./elevenlabs.ts";++describe("ElevenLabs speech model", () => {+ it("speaks Thai and other scripts Flash lacks with Eleven v3", () => {+ expect(speechModel("สวัสดีครับ วันนี้อากาศดี")).toBe("eleven_v3");+ expect(speechModel("Done. ส่งไฟล์แล้ว")).toBe("eleven_v3");+ expect(speechModel("שלום")).toBe("eleven_v3");+ expect(speechModel("নমস্কার")).toBe("eleven_v3");+ });++ it("keeps Flash for languages it speaks", () => {+ for (const text of ["Hello there", "こんにちは", "你好", "नमस्ते", "Xin chào", "Привет", "مرحبا", "வணக்கம்"]) {+ expect(speechModel(text)).toBe("eleven_flash_v2_5");+ }+ });+});const listen = async (server: Server) => {await new Promise<void>((r) => server.listen(0, "127.0.0.1", r));diff --git a/server/tts/elevenlabs.ts b/server/tts/elevenlabs.tsindex bbe1d06674..3ba184435f 100644--- a/server/tts/elevenlabs.ts+++ b/server/tts/elevenlabs.ts@@ -1,8 +1,14 @@// Runs on the harness, never the renderer: the key must not leave the server. OMB_ELEVENLABS_API overrides the// base URL for dev and tests.import { elevenLabsProviderApi } from "../included-services.ts";+import { userErrorThrown } from "../user-errors.ts";const MODEL = "eleven_flash_v2_5";+// Flash v2.5 has no Thai, Bengali, Hebrew, Georgian, Armenian, Gujarati, Punjabi, Telugu, Kannada or Malayalam; Eleven v3+// speaks them. Text in one of their scripts goes to v3, everything else stays on the faster Flash.+const BEYOND_FLASH = /[\u0E00-\u0E7F\u0980-\u09FF\u0590-\u05FF\u10A0-\u10FF\u0530-\u058F\u0A80-\u0AFF\u0A00-\u0A7F\u0C00-\u0C7F\u0C80-\u0CFF\u0D00-\u0D7F]/;+export const speechModel = (text: string): string => (BEYOND_FLASH.test(text) ? "eleven_v3" : MODEL);+const HEARING_MODEL = "scribe_v2";// 64kbps mono is indistinguishable for speech and a third of the bytesconst FORMAT = "mp3_44100_64";@@ -28,14 +34,14 @@ async function safeJson(res: Response): Promise<any> {}}-function message(status: number, what: string, body: any): string {+function message(status: number, what: string, body: any, permissions = "Voices and Text to Speech"): string {const theirs =(typeof body?.detail === "string" && body.detail.trim()) ||(typeof body?.detail?.message === "string" && body.detail.message.trim()) ||(typeof body?.message === "string" && body.message.trim()) ||"";if (status === 401 || status === 403) {- return "ElevenLabs rejected that key. If it's a restricted key, give it the Voices and Text to Speech permissions — or paste an unrestricted one.";+ return `ElevenLabs rejected that key. If it's a restricted key, give it the ${permissions} permissions — or paste an unrestricted one.`;}if (status === 429) return theirs || "ElevenLabs is rate-limiting this account — wait a moment and try again.";if (status === 402) return theirs || "ElevenLabs says this account is out of credit.";@@ -159,7 +165,7 @@ export function synthesize(text: string, voiceId: string, key: string, api: striconst res = await fetch(`${api}/text-to-speech/${encodeURIComponent(voiceId)}/stream?output_format=${FORMAT}`, {method: "POST",headers: { "xi-api-key": key, "content-type": "application/json", accept: "audio/mpeg" },- body: JSON.stringify({ text, model_id: MODEL }),+ body: JSON.stringify({ text, model_id: speechModel(text) }),redirect: "error",signal: AbortSignal.timeout(60_000),});@@ -183,3 +189,26 @@ export function synthesize(text: string, voiceId: string, key: string, api: stri})();return { firstAudio: firstAudio.promise, audio: audio.promise };}++/** Speech-to-text with Scribe, for listening where no Fish Audio key is saved. Only the person's own key comes here. */+export async function transcribe(audio: Uint8Array, mime: string, key: string, api: string): Promise<string> {+ const form = new FormData();+ form.append("model_id", HEARING_MODEL);+ form.append("tag_audio_events", "false");+ form.append("file", new Blob([audio as Uint8Array<ArrayBuffer>], { type: mime }), "speech.wav");+ let res: Response;+ try {+ res = await fetch(`${api}/speech-to-text`, {+ method: "POST",+ headers: { "xi-api-key": key },+ body: form,+ redirect: "error",+ signal: AbortSignal.timeout(60_000),+ });+ } catch {+ throw userErrorThrown("serverError.voice.elevenLabsTranscribeConnection");+ }+ const body = await safeJson(res);+ if (!res.ok) throw new Error(message(res.status, "hearing you", body, "Speech to Text"));+ return typeof body?.text === "string" ? body.text.trim() : "";+}diff --git a/server/user-errors.ts b/server/user-errors.tsindex 31e7aa0993..c0833f5516 100644--- a/server/user-errors.ts+++ b/server/user-errors.ts@@ -215,8 +215,9 @@ export const USER_ERROR = {"serverError.mailbox.adminOnly": "Only the owner or an admin can manage the mailboxes.","serverError.mailbox.addressAndPassword": "Enter your email address and password.","serverError.mailbox.outgoingFields": "Check the outgoing server: a name like mail.example.com, a port from 1 to 65535, and SSL/TLS or STARTTLS.",- "serverError.voice.fishKeyRequired": "Add a Fish Audio key in Settings → API keys to talk to your bots here.",+ "serverError.voice.fishKeyRequired": "Add a Fish Audio or ElevenLabs key in Settings → API keys to talk to your bots here.","serverError.voice.fishTranscribeConnection": "Couldn't reach Fish Audio to hear you — check your connection.",+ "serverError.voice.elevenLabsTranscribeConnection": "Couldn't reach ElevenLabs to hear you — check your connection.","serverError.file.tooLarge": "This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}.",} as const;diff --git a/src/lib/speech.test.ts b/src/lib/speech.test.tsindex f3e22a0302..8e6fa887d4 100644--- a/src/lib/speech.test.ts+++ b/src/lib/speech.test.ts@@ -43,6 +43,14 @@ describe("listening readiness", () => {expect(listensHere(withDictation(FISH), null)).toBe(false);});+ it("listens through the person's own ElevenLabs key, but not the plan's included voice", () => {+ const ownEleven = { savedKeys: { ttsKey: { configured: true } } } as unknown as ConfigStatus;+ const includedEleven = { savedKeys: { ttsKey: { configured: true } }, tts: { included: true } } as unknown as ConfigStatus;+ expect(fishListeningReady(ownEleven)).toBe(true);+ expect(listensHere(withDictation(FISH), ownEleven)).toBe(true);+ expect(fishListeningReady(includedEleven)).toBe(false);+ });+it("needs no key for the Mac's own recognizer, and nothing where dictation is unavailable", () => {expect(listensHere(withDictation(APPLE), null)).toBe(true);expect(listensHere(withDictation({ available: false, engine: "none", onDevice: false }), savedFish)).toBe(false);diff --git a/src/lib/speech.ts b/src/lib/speech.tsindex e08ae63159..40b60e21e7 100644--- a/src/lib/speech.ts+++ b/src/lib/speech.ts@@ -12,8 +12,11 @@ export function speechBridge(): SpeechBridge | Window["ogb"] {return desktopCapabilitiesNow().dictation.engine === "fish-audio" ? fishSpeech : globalThis.window?.ogb;}+/** A key the server listens with: Fish Audio, or the person's own ElevenLabs key (not the plan's included voice). */export function fishListeningReady(config: ConfigStatus | null | undefined): boolean {- return savedState(keyEntry("fishAudio"), config).configured;+ if (savedState(keyEntry("fishAudio"), config).configured) return true;+ const eleven = savedState(keyEntry("elevenlabs"), config);+ return eleven.configured && !eleven.included;}/** Whether speech can be heard here: the engine is there and, through Fish Audio, so is a saved key. */diff --git a/src/locales/en.json b/src/locales/en.jsonindex e38ca6e735..8f00a1ba1f 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -6740,11 +6740,11 @@"call.mode.menu": "Call mode","call.mode.turns": "Take turns","call.mode.turnsHint": "You talk, then the bot answers in its own voice. Listening stays on this computer.",- "call.mode.turnsHintFish": "You talk, then the bot answers in its own voice. Fish Audio turns what you say into text, so your voice goes to Fish Audio.",+ "call.mode.turnsHintFish": "You talk, then the bot answers in its own voice. Fish Audio (or ElevenLabs, if that's the key you saved) turns what you say into text, so your voice goes there.","call.mode.live": "Live","call.mode.liveHint": "Talk naturally and interrupt any time; the bot still does the work.",- "call.capability.turnsNeedFishKey": "Add a Fish Audio key to take turns on calls",- "call.capability.turnsNeedFishKeyReason": "On this computer, Take turns hears you through Fish Audio speech-to-text. Add a Fish Audio key in Settings → API keys.",+ "call.capability.turnsNeedFishKey": "Add a Fish Audio or ElevenLabs key to take turns on calls",+ "call.capability.turnsNeedFishKeyReason": "On this computer, Take turns hears you through Fish Audio or ElevenLabs speech-to-text. Add either key in Settings → API keys.","call.capability.turnsNeedDesktop": "Calls where you take turns need the desktop app","call.capability.turnsNeedDesktopReason": "They listen from this computer, so they need {app} on a Mac, Windows or Linux computer.","call.capability.turnsOnThisComputerAnyOs": "Calls where you take turns work with bots on this computer",@@ -10104,8 +10104,9 @@"server.connect.emailOnComputer": "Type your email address and password on your computer.","serverError.mailbox.adminOnly": "Only the owner or an admin can manage the mailboxes.","serverError.mailbox.addressAndPassword": "Enter your email address and password.",- "serverError.voice.fishKeyRequired": "Add a Fish Audio key in Settings → API keys to talk to your bots here.",+ "serverError.voice.fishKeyRequired": "Add a Fish Audio or ElevenLabs key in Settings → API keys to talk to your bots here.","serverError.voice.fishTranscribeConnection": "Couldn't reach Fish Audio to hear you — check your connection.",+ "serverError.voice.elevenLabsTranscribeConnection": "Couldn't reach ElevenLabs to hear you — check your connection.","serverError.file.tooLarge": "This file is {size}, over the {limit} limit for opening files from chat. The file itself is still saved as {name}.","server.botApi.engineRefusal": "This thread came in through the Bot API, and this bot's AI can't work in it. Start a new conversation.","server.botApi.confinedWhy": "This call came in through the Bot API, so it can only answer from what this bot already knows.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 296c7aca00..3b53243fa7 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -6420,11 +6420,11 @@"call.mode.menu": "Modo de chamada","call.mode.turns": "Um de cada vez","call.mode.turnsHint": "Você fala e depois o bot responde com a própria voz. A escuta é feita neste computador.",- "call.mode.turnsHintFish": "Você fala e depois o bot responde com a própria voz. O Fish Audio transforma sua fala em texto, então sua voz é enviada ao Fish Audio.",+ "call.mode.turnsHintFish": "Você fala e depois o bot responde com a própria voz. O Fish Audio (ou o ElevenLabs, se essa for a chave que você salvou) transforma sua fala em texto, então sua voz é enviada para lá.","call.mode.live": "Ao vivo","call.mode.liveHint": "Fale naturalmente e interrompa quando quiser; o bot continua fazendo o trabalho.",- "call.capability.turnsNeedFishKey": "Adicionar uma chave do Fish Audio para chamadas com falas alternadas",- "call.capability.turnsNeedFishKeyReason": "Neste computador, o modo Um de cada vez usa o Fish Audio para transformar sua fala em texto. Adicione uma chave do Fish Audio em Configurações → Chaves de API.",+ "call.capability.turnsNeedFishKey": "Adicionar uma chave do Fish Audio ou do ElevenLabs para chamadas com falas alternadas",+ "call.capability.turnsNeedFishKeyReason": "Neste computador, o modo Um de cada vez usa o Fish Audio ou o ElevenLabs para transformar sua fala em texto. Adicione uma das chaves em Configurações → Chaves de API.","call.capability.turnsNeedDesktop": "Chamadas com falas alternadas precisam do app para computador","call.capability.turnsNeedDesktopReason": "Elas captam sua voz neste computador, então precisam do app {app} em um Mac ou em um computador com Windows ou Linux.","call.capability.turnsOnThisComputerAnyOs": "Chamadas com falas alternadas funcionam com os bots deste computador",@@ -10037,8 +10037,9 @@"server.connect.emailOnComputer": "Digite seu endereço de e-mail e a senha no computador.","serverError.mailbox.adminOnly": "Só o proprietário ou um administrador pode gerenciar as caixas de e-mail.","serverError.mailbox.addressAndPassword": "Digite seu endereço de e-mail e a senha.",- "serverError.voice.fishKeyRequired": "Adicione uma chave do Fish Audio em Configurações → Chaves de API para falar com seus bots aqui.",+ "serverError.voice.fishKeyRequired": "Adicione uma chave do Fish Audio ou do ElevenLabs em Configurações → Chaves de API para falar com seus bots aqui.","serverError.voice.fishTranscribeConnection": "Não foi possível conectar ao Fish Audio para ouvir você. Confira sua conexão.",+ "serverError.voice.elevenLabsTranscribeConnection": "Não foi possível conectar ao ElevenLabs para ouvir você. Confira sua conexão.","serverError.file.tooLarge": "Este arquivo tem {size}, acima do limite de {limit} para abrir arquivos do chat. O arquivo continua salvo como {name}.","server.botApi.engineRefusal": "Esta conversa veio pela API do bot, e a IA deste bot não pode trabalhar nela. Inicie uma nova conversa.","server.botApi.confinedWhy": "Esta chamada veio pela API do bot, então ele só pode responder com o que já sabe.",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 9f1f45bd31..1caa4c2639 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -32088,11 +32088,11 @@"call.mode.menu": "f187cabbab3f67f9873aea3284578de6ec553840c7ab3924241a2d47bb601486","call.mode.turns": "f39177b9801476a33116c3fbc3fb1a5cc53135d28e0b98d206c4e117186354e7","call.mode.turnsHint": "85ffd8d383ca4573199775a025306bc9cd23dfb8448380d95584d17ce00ddecb",- "call.mode.turnsHintFish": "cff247053b81e0c7d8c94504a87c93ded74471ac6d33bc5fb54c2784c008d6d9",+ "call.mode.turnsHintFish": "43ace53b232caca8bdea32be3b6551d18216221722a59ccb8e91b06caff3a799","call.mode.live": "b64ac05f17e64d037db81a98f51e2688216e292ae9748f979f04dfbac49fd7fc","call.mode.liveHint": "a48cfd867937337cc1d12d085f9a7d252cccbf656d7dfa437aade48a37625d3f",- "call.capability.turnsNeedFishKey": "122a565f945977d1593d8679fe4d83b61a88343fd1c5db597252cfb52406ae43",- "call.capability.turnsNeedFishKeyReason": "0d25d9e82d4584882869d0989a55c221a4f495095208b29de650f58c1b5293f7",+ "call.capability.turnsNeedFishKey": "ea83a77e17fdd67b1578cbd566ec31b248365d2c470f45d59db1abc3e9fda7ce",+ "call.capability.turnsNeedFishKeyReason": "236b1cdecb531fd7c7dd6dc0c8fc96a22814771ff49687db09815d1d3da333ee","call.capability.turnsNeedDesktop": "325e1fa4c2cd2654afdacb511f0c616b394aa46b9293b9b1ab54eb75f307f711","call.capability.turnsNeedDesktopReason": "e392ddb6982e6ba645466477b8d015cb96f3819efc63fd4af9df83e55bbb1fa0","call.capability.turnsOnThisComputerAnyOs": "28bb5bd4869a31b89d2d7d0786c04728ef324fde1e53269534fab246732d8696",@@ -35437,8 +35437,9 @@"server.connect.emailOnComputer": "4ea041594c8345ef1a78babe9a01150bb8e8764c20c4719c7393bc80efa85189","serverError.mailbox.adminOnly": "f986001c250f7957faeec33e8095683be1a173d2e7feb6f01665358b4f0c3109","serverError.mailbox.addressAndPassword": "c879748ef1fff3584a08bc03e0a89e132fe9ee6a10e9774b26e73199238091b7",- "serverError.voice.fishKeyRequired": "c02937e85d07c459a7472bdd6d066cd59ccb8431592466cfb4efcaa9369725bd",+ "serverError.voice.fishKeyRequired": "28cb857484ed16d93450fe8e57e46cadb0fd332db99ac534266e0aa86ee0ace9","serverError.voice.fishTranscribeConnection": "1bba2ee6d399e2474eb46224e53bf1b352b9abb2755bd217b82c5100fc45df72",+ "serverError.voice.elevenLabsTranscribeConnection": "ef5b889110bcbb3402070b3dde9d4de126c75263754c2220a98cd9848af262bf","server.botApi.engineRefusal": "b954cb31cc29f455bd67b55e7305871bbdda710352f8850d2e317411c86f7baa","server.botApi.confinedWhy": "bbc0f23afe1ff62674cc1aa1ebef24484f284d2b590e99dbcb09920c092e229b","voice.openai.description": "5316e14062bdf30a78bb38dd65f4b4b1d98f688ec1915967465a57a8a77474bb",@@ -51573,9 +51574,9 @@"memory.addTopic": "da1447a5e262c42f361a91f908ab85f334bff162bf67e6b98d17a352c9938f7c","memory.removeTopic": "71a83809e5d390f055f8e6ccefb4783974f4164f7a28023096fa11e28d43df84","botAccess.grants.loadError": "43ef4120966b7af8d2895b4ffd0dc8defb0da68759fd71a40c42e9af375ff0ff",- "call.mode.turnsHintFish": "cff247053b81e0c7d8c94504a87c93ded74471ac6d33bc5fb54c2784c008d6d9",- "call.capability.turnsNeedFishKey": "122a565f945977d1593d8679fe4d83b61a88343fd1c5db597252cfb52406ae43",- "call.capability.turnsNeedFishKeyReason": "0d25d9e82d4584882869d0989a55c221a4f495095208b29de650f58c1b5293f7",+ "call.mode.turnsHintFish": "43ace53b232caca8bdea32be3b6551d18216221722a59ccb8e91b06caff3a799",+ "call.capability.turnsNeedFishKey": "ea83a77e17fdd67b1578cbd566ec31b248365d2c470f45d59db1abc3e9fda7ce",+ "call.capability.turnsNeedFishKeyReason": "236b1cdecb531fd7c7dd6dc0c8fc96a22814771ff49687db09815d1d3da333ee","call.capability.turnsNeedDesktop": "325e1fa4c2cd2654afdacb511f0c616b394aa46b9293b9b1ab54eb75f307f711","call.capability.turnsNeedDesktopReason": "e392ddb6982e6ba645466477b8d015cb96f3819efc63fd4af9df83e55bbb1fa0","call.capability.turnsOnThisComputerAnyOs": "28bb5bd4869a31b89d2d7d0786c04728ef324fde1e53269534fab246732d8696",@@ -54251,8 +54252,9 @@"server.connect.emailOnComputer": "4ea041594c8345ef1a78babe9a01150bb8e8764c20c4719c7393bc80efa85189","serverError.mailbox.adminOnly": "f986001c250f7957faeec33e8095683be1a173d2e7feb6f01665358b4f0c3109","serverError.mailbox.addressAndPassword": "c879748ef1fff3584a08bc03e0a89e132fe9ee6a10e9774b26e73199238091b7",- "serverError.voice.fishKeyRequired": "c02937e85d07c459a7472bdd6d066cd59ccb8431592466cfb4efcaa9369725bd",+ "serverError.voice.fishKeyRequired": "28cb857484ed16d93450fe8e57e46cadb0fd332db99ac534266e0aa86ee0ace9","serverError.voice.fishTranscribeConnection": "1bba2ee6d399e2474eb46224e53bf1b352b9abb2755bd217b82c5100fc45df72",+ "serverError.voice.elevenLabsTranscribeConnection": "ef5b889110bcbb3402070b3dde9d4de126c75263754c2220a98cd9848af262bf","server.botApi.engineRefusal": "b954cb31cc29f455bd67b55e7305871bbdda710352f8850d2e317411c86f7baa","server.botApi.confinedWhy": "bbc0f23afe1ff62674cc1aa1ebef24484f284d2b590e99dbcb09920c092e229b","voice.openai.description": "5316e14062bdf30a78bb38dd65f4b4b1d98f688ec1915967465a57a8a77474bb",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex ba3285a00b..2e21c14610 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -6427,11 +6427,11 @@"call.mode.menu": "通話模式","call.mode.turns": "輪流對話","call.mode.turnsHint": "你說完後,機器人會用自己的聲音回答。語音辨識會在這台電腦上進行。",- "call.mode.turnsHintFish": "你說完後,機器人會用自己的聲音回答。Fish Audio 會將你說的話轉成文字,因此你的語音會傳送給 Fish Audio。",+ "call.mode.turnsHintFish": "你說完後,機器人會用自己的聲音回答。Fish Audio(或你儲存的 ElevenLabs 金鑰)會將你說的話轉成文字,因此你的語音會傳送到該服務。","call.mode.live": "即時","call.mode.liveHint": "自然交談,隨時可以插話;工作仍由機器人完成。",- "call.capability.turnsNeedFishKey": "新增 Fish Audio 金鑰即可在通話中輪流對話",- "call.capability.turnsNeedFishKeyReason": "在這台電腦上,「輪流對話」透過 Fish Audio 語音轉文字聽你說話。請在「設定 → API 金鑰」中新增 Fish Audio 金鑰。",+ "call.capability.turnsNeedFishKey": "新增 Fish Audio 或 ElevenLabs 金鑰即可在通話中輪流對話",+ "call.capability.turnsNeedFishKeyReason": "在這台電腦上,「輪流對話」透過 Fish Audio 或 ElevenLabs 語音轉文字聽你說話。請在「設定 → API 金鑰」中新增其中一個金鑰。","call.capability.turnsNeedDesktop": "輪流對話的通話需要桌面版應用程式","call.capability.turnsNeedDesktopReason": "它們從這台電腦聆聽,因此需要在 Mac、Windows 或 Linux 電腦上使用 {app}。","call.capability.turnsOnThisComputerAnyOs": "輪流對話的通話可與這台電腦上的機器人一起使用",@@ -9588,8 +9588,9 @@"server.connect.emailOnComputer": "請在你的電腦上輸入電子郵件地址和密碼。","serverError.mailbox.adminOnly": "只有擁有者或管理員可以管理信箱。","serverError.mailbox.addressAndPassword": "請輸入你的電子郵件地址和密碼。",- "serverError.voice.fishKeyRequired": "請在「設定 → API 金鑰」中新增 Fish Audio 金鑰,才能在這裡與機器人對話。",+ "serverError.voice.fishKeyRequired": "請在「設定 → API 金鑰」中新增 Fish Audio 或 ElevenLabs 金鑰,才能在這裡與機器人對話。","serverError.voice.fishTranscribeConnection": "無法連上 Fish Audio 來聽取你的聲音 — 請檢查你的連線。",+ "serverError.voice.elevenLabsTranscribeConnection": "無法連上 ElevenLabs 來聽取你的聲音 — 請檢查你的連線。","server.botApi.engineRefusal": "這個對話是透過 Bot API 進來的,這個機器人的 AI 無法在其中工作。請開始新的對話。","server.botApi.confinedWhy": "這次呼叫是透過 Bot API 進來的,因此只能根據這個機器人已知的內容回答。","voice.openai.description": "使用 AI 產生的語音朗讀回覆和語音訊息。使用你的 OpenAI API 金鑰,並由 OpenAI 依 API 用量計費。即時通話設定是分開的。",