Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Voice test: hand over an oversized utterance directly
milind-soni7cf63a9246f7
diff --git a/src/lib/tts/index.test.ts b/src/lib/tts/index.test.tsindex b25ff82cd6..e713717134 100644--- a/src/lib/tts/index.test.ts+++ b/src/lib/tts/index.test.ts@@ -3,7 +3,6 @@ import type { VoiceProbeSample } from "../../../shared/voice-latency-probe";import { setLocale } from "../i18n";import { Speaker } from "./index";-import { toUtterances } from "../../../server/tts/speech-text";import { userError } from "../../../server/user-errors";class FakeAudio {@@ -195,8 +194,7 @@ describe("coded voice refusals", () => {])("shows an oversized prepared utterance refusal in %s", async (locale, expected) => {setLocale(locale);const text = "Tudo bem. ".repeat(80);- const utterances = toUtterances(text);- expect(utterances.some((utterance) => utterance.length > 500)).toBe(true);+ const utterances = [text.trim()];vi.stubGlobal("fetch", vi.fn(async (input: string | URL | Request) => String(input).endsWith("/prepare")? json({ ready: true, utterances }): Response.json(userError("serverError.voice.utteranceTooLong"), { status: 413 })));