Skip to content

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

Merge pull request #6401 from Afloat16/fix/tts-cancel-http-synthesis-20261117

milind-sonibb6783620628
diff --cc server/tts/index.ts
index 20665dbd7d,34ead441f2..ee0c4dd357
--- a/server/tts/index.ts
+++ b/server/tts/index.ts
@@@ -189,10 -183,9 +190,10 @@@ export function speak(cfg: AppConfig, t
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);
+ return gemini.synthesize(text, voice, key, cfg.tts?.model, signal);
}
if (provider === "openai") return openai.synthesize(text, voiceId || cfg.tts?.voice || "", cfg.openai?.key || "", signal);
+ if (provider === "deepseek") return deepseek.synthesize(text, deepseekVoice(cfg, voiceId), cfg.deepseek?.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.");