Skip to content

Keep voice mode active in background with floating PiP avatar - #418

Merged
promptclickrun merged 1 commit into
mainfrom
feat/background-voice-mode
Nov 30, 2026
Merged

promptclickrun merged 1 commit into
mainfrom
feat/background-voice-mode

Conversation

@promptclickrun

Copy link
Copy Markdown
Owner

Summary

  • Background live voice continuity: Removes the 30-second BACKGROUND_LIMIT auto-hangup in useLiveSession.ts, enables enableBackgroundRecording: true in app.config.ts, enables shouldPlayInBackground: true in tts.ts, hardens iOS audio session activation/reset recovery, and adds an Android microphone foreground service (BotkinsVoiceService).
  • Floating Picture-in-Picture (PiP) animated avatar:
    • iOS (BotkinsVoicePiPModule.swift): Uses AVPictureInPictureController + AVSampleBufferDisplayLayer (canStartPictureInPictureAutomaticallyFromInline = true, UIBackgroundModes: ["audio"] only) to automatically pop out a floating square animated Bloub avatar window with the bot's color palette, audio-reactive glow rings, natural eye blinks, live status pill, mute toggle via PiP play/pause, restore-to-app, and close-to-end-call.
    • Android (BotkinsVoicePiPModule.kt + withBackgroundVoice.js): Enables 1:1 PiP auto-enter alongside the microphone foreground service.

Verification

  • Mobile npm run typecheck + full test suite (1400 tests, including voice-background.test.ts) pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@promptclickrun
promptclickrun merged commit cc85098 into main Nov 30, 2026
8 checks passed
@promptclickrun
promptclickrun deleted the feat/background-voice-mode branch November 30, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant