Voice
-
Live mode (the voice screen):
POST /v1/threads/{id}/messages {text, live: true}.The core adds
prompts/live-mode.mdto that turn (short spoken sentences, no markdown) and gives it the core toollisten_for_reply, which setslisten: trueonGET /v1/turns/{id}and emitslive.listen; the phone then reads the answer out and opens the microphone.Outside live mode the tool does not exist. In live mode
ask_userraises no card and does not wait (a waiting turn would hold up the chat): it setslistenand the spoken answer is the next message.The voice screen sends
interrupt: true, so speaking again stops a turn still waiting for a yes; a cancelled wait voids its card. A waiting approval carriesvoice_ok; the phone reads its question out and listens, then answers withvia: "voice".Voice may answer questions and low or medium risk tool calls; high risk and plugin installs or updates are refused in code (400, "tap") and need a tap on the screen.
-
Voice out:
AGENT_TTS_URL(on the serverhttp://127.0.0.1:5004, the user serviceassistantx-voice: Kokoro, British malebm_george+bm_fable, separate from the other app's voice on 5002) turns onPOST /v1/speech.Only a loopback
httpaddress is used, the request always asks for the local Kokoro engine (never a cloud voice), text is cut to 1500 characters, and the app falls back to the phone's own voice when the server has none.
On the phone
AssistActivityis the voice card. It opens when you hold the home or power button (with the app set as the phone's assistant), when you say the wake word, or from the app. It listens, sends the words, shows the answer and reads it out.WakeServicelistens for the wake word while it is on. Speech becomes text on the phone, is checked for the word, and is thrown away. It shows a notification the whole time and costs battery.Speech.ktturns speech into text on the phone. Audio is never sent to the server.- The live prompt is live-mode.md.