Assistant: a bottom sheet over the app, microphone first
CI / check (push) Canceled after 0s

Long-press power opened a full-screen window. The assistant is now a sheet
over the current app (see-through window, own dim): half height, drag the
handle up to full, down / Back / a tap outside to close (settle() decides,
unit-tested). Both ways in -- the voice-interaction session and AssistActivity
-- draw the same AssistSheetFrame + AssistSheetContent, the latter from state
alone for the screenshot tests.

- Microphone first: it opens listening (Settings switch), words shown as they
  come. LLeMbas voice input re-transcribes the recording so far every 1.2 s
  and a pause after speech sends it (RMS level + unchanged words; nothing said
  is discarded, never transcribed); the phone's recogniser gives partials
  itself (PhoneRecognizer: on-device, else another app's -- never the default,
  which is LLeMbas's own while it is the assistant; no Google library).
- Model and connection chip: picture, name, instance, online dot; a tap picks
  another model, kept in Prefs.assistantModel.
- Use screen: the AssistStructure text and/or screenshot, sent only with the
  next question after a tap; quick actions Summarise / Translate / Explain.
- Continue the last assistant chat; follow-ups stay in the same chat until
  New chat. Voice reply through the server's TTS (toggle; Read aloud).
- Open in app continues the same chat. A card waiting for an answer says to
  open it in the app.
- Help line: no wake word for a third-party assistant on stock Android.
- Settings: Voice input (LLeMbas = the instance's speech-to-text via the
  server; Phone = the phone's recogniser) with what each does with the
  recording, and "Start listening when the assistant opens".
- The session makes a fresh controller as it hides, so the next invocation's
  screen lands in the controller that shows it.

Screenshots 18-23 (the sheet over a chat), 08-settings at full length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-10 08:19:21 +00:00
1 parent 6ae5736ffd
commit 21e5de2d73
24 files changed
+2097 -240

No files matched your search

+34 -1
View File
@@ -299,10 +299,43 @@ STRINGS: dict[str, str] = {
"update_installing": "Installing %1$s…",
# Assistant
"assist_hint": "Ask anything",
"assist_include_screen": "Include screen",
"assist_signed_out": "Sign in to a LLeMbas instance in the app first.",
"assist_open_app": "Open the app",
"assist_open_in_app": "Continue in the app",
"assist_use_screen": "Use screen",
"assist_screen_both": "The screen's text and a screenshot go with your next question.",
"assist_screen_text": "The screen's text goes with your next question.",
"assist_screen_shot": "A screenshot goes with your next question.",
"assist_quick_summarise": "Summarise this",
"assist_quick_summarise_prompt": "Summarise what is on my screen.",
"assist_quick_translate": "Translate this",
"assist_quick_translate_prompt": "Translate what is on my screen into English.",
"assist_quick_explain": "Explain this",
"assist_quick_explain_prompt": "Explain what is on my screen.",
"assist_continue": "Continue the last chat",
"assist_help": "Hold the power button to open the assistant over any app, or use the Quick Settings tile.",
"assist_no_wake_word": "There is no wake word: on stock Android, listening for one is kept for the assistant built into the phone.",
"assist_connecting": "Connecting…",
"assist_offline": "%1$s cannot be reached",
"assist_no_model": "No model",
"assist_voice_reply_on": "Voice reply is on",
"assist_voice_reply_off": "Voice reply is off",
"assist_read_aloud": "Read aloud",
"assist_stop_reading": "Stop reading",
"assist_answer_in_app": "This reply is waiting for your answer: open it in the app.",
"assist_send_now": "Send what I said",
"assist_say_it": "Say it, then pause",
"assist_type": "Type instead",
"assist_writing_down": "Writing down what you said…",
"assist_recogniser_failed": "The phone's speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.",
"assistant_listens": "Start listening when the assistant opens",
"voice_input": "Voice input",
"voice_input_lembas": "LLeMbas",
"voice_input_lembas_line": "Your instance's speech-to-text, through the server. The recording goes to your instance and nowhere else.",
"voice_input_phone": "Phone (Google or the system's)",
"voice_input_phone_line": "The phone's own recogniser. The words appear as you speak; the recording goes wherever that recogniser sends it.",
"voice_input_phone_none": "This phone has no speech recogniser of its own.",
"voice_input_hint": "Used by the assistant. With LLeMbas the words appear a moment behind you, and a pause sends them; with the phone's recogniser they appear as you speak.",
# Share
"share_sending": "Sending to LLeMbas…",
"share_default_prompt": "Have a look at this.",