Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix(host): the call's voice answers in the language the user speaks
leepokai09dfd2515d7c
diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.mdindex 49d92b65..7ac654cc 100644--- a/apps/android/WhatsNew.md+++ b/apps/android/WhatsNew.md@@ -14,12 +14,14 @@ else a generic "Bug fixes and improvements" line. Delete old sections.- 通話中短暫斷線再連上時,錯過的回覆會補念給你聽。- Gemini 或 OpenAI 通話斷線時會自動重新連上並接著聊,不必重打。- 通話的通知會顯示通話狀態和 Bot 正在做的事。+- Gemini 與 OpenAI 的語音用你正在說的語言回答,你換語言它就跟著換。### en-US- While the bot works, the Gemini and OpenAI voice says what it's doing, when an approval waits or something fails, and reads the result.- Replies missed while a call reconnects are read once it's back.- A dropped Gemini or OpenAI call reconnects without hanging up.- The call's notification shows its state and what the bot is doing.+- The Gemini and OpenAI voice answers in the language you speak and follows when you switch.## 2.25.0diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 41a65bed..2cfc83f2 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -13,12 +13,14 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o- 通話中短暫斷線再連上時,錯過的回覆會補念給你聽。- Gemini 或 OpenAI 通話斷線時會自動重新連上並接著聊,不必重打;來電、Siri 或其他 App 佔用聲音時通話會暫停,結束後自動繼續,也可以點一下通話列下方繼續。- 語音通話像一般電話一樣出現在鎖定畫面和動態島,可以從那裡或 AirPods 靜音、掛斷;來電時通話先保留,掛斷後接著聊。Bot 的即時動態也會顯示通話狀態和它正在做的事。+- Gemini 與 OpenAI 的語音用你正在說的語言回答,你換語言它就跟著換。### en-US- While the bot works, the Gemini and OpenAI voice keeps you posted on what it's doing, tells you when an approval waits or something fails, and reads the result when it's done.- A reply that arrives while a call briefly loses its connection is read once it's back.- A Gemini or OpenAI call that loses its connection reconnects and carries on without hanging up; a phone call, Siri or another app's audio pauses the call, which picks up again when it ends, or with a tap under the call bar.- Calls show like phone calls on the Lock Screen and in the Dynamic Island: mute or end them there or with AirPods, and a phone call holds them until you're back. The bot's Live Activity shows the call and what the bot is doing.+- The Gemini and OpenAI voice answers in the language you speak and follows when you switch.## 2.25.0diff --git a/docs/features/voice-call.md b/docs/features/voice-call.mdindex 77e979aa..6c0fe479 100644--- a/docs/features/voice-call.md+++ b/docs/features/voice-call.md@@ -252,10 +252,12 @@ carries audio and talks to these methods:its members), the switchboard operator, not the bot; it passes the user's requests on with `send_to_bot`, tellsthe user what the bot says and asks for what's missing; it speaks of the bot in the third person and never claimsit did or saw something; anything about code, files, the computer or the project goes to the bot even when it- thinks it knows. Then the background, as named sections that say where they came from, each capped (about 16k+ thinks it knows. It answers in the language the user is speaking right now and switches when they switch (for+ Chinese, their variety and script), whatever the phone's language, the background or the bot's replies are in;+ the phone's language only covers speaking before the user has. Then the background, as named sections that say where they came from, each capped (about 16kcharacters in all on Gemini, plus up to 3k of the call so far for a session that replaces another; six tenths ofthat on OpenAI), empty ones left out: now (the computer's date, time,- weekday and offset; the phone's language), about the user (the shared `MEMORY.md` and its notes' names and+ weekday and offset; the phone's language setting, as a fallback), about the user (the shared `MEMORY.md` and its notes' names anddescriptions, when the bot uses it), this bot (name, description, harness and model, folder and project,permission mode, connectors, skills, computer use, routines; a group's members), what the bot remembers (its`MEMORY.md` and notes index), the project now (git branch, changed files, the last three commits; outside adiff --git a/host/src/chat/calls/context.rs b/host/src/chat/calls/context.rsindex 329491fb..eddbeb1a 100644--- a/host/src/chat/calls/context.rs+++ b/host/src/chat/calls/context.rs@@ -75,7 +75,10 @@ word for word. Never do the work or invent results.for speech (no code blocks, no long lists, no URLs).- Messages starting with [Progress] come from the computer while {name} works: the latest one answers \"what is \{name} doing?\"; mention it briefly if the user is waiting, never make up progress or results.-- Speak the user's language. Keep spoken answers short and natural.+- Answer in the language the user is speaking right now, the language of their last words, and switch when they \+switch, whatever the phone's language, the background or {name}'s replies are in. For Chinese keep their variety and \+script: Taiwanese Mandarin gets Traditional characters and Taiwan wording, Mainland Mandarin gets Simplified, \+Cantonese gets Cantonese. Read out what {name} says in the user's language too. Keep spoken answers short and natural.- The background below is for context: use it, don't read it out.")}@@ -147,7 +150,10 @@ fn now(language: Option<&str>) -> String {let now = chrono::Local::now();let mut lines = vec![format!("{} (UTC{})", now.format("%A %Y-%m-%d %H:%M"), now.format("%:z"))];if let Some(language) = language.filter(|l| !l.trim().is_empty()) {- lines.push(format!("The user's language: {}", crate::agent::acp::truncate(language.trim(), 40)));+ lines.push(format!(+ "The phone's language setting: {} (only for speaking before the user has; then follow the language they speak)",+ crate::agent::acp::truncate(language.trim(), 40)+ ));}lines.join("\n")}@@ -430,6 +436,11 @@ pub(super) mod tests {let gemini = instructions(&hub, &cfg, Some(Provider::Gemini), Some("zh-TW"), &[]).await;assert!(gemini.starts_with("You are the voice relay for Mika"), "the role comes first: {}", &gemini[..80]);assert!(gemini.contains("You are not Mika") && gemini.contains("send_to_bot"));+ assert!(+ gemini.contains("the language the user is speaking right now")+ && gemini.contains("follow the language they speak"),+ "the voice answers in the language spoken, the phone's setting is only a fallback"+ );for heading in ["## Now","## About the user",