Skip to content

Custom STT stops completely whenever Omi's own live socket fails #20381

Closed

Description

@meath1981

Custom STT stops completely whenever Omi's own live socket fails

App: iOS 1.0.553/1.0.554 · Mode: Custom (real-time) STT, "Send raw audio to Omi" on · Device: Omi pendant

What happens

With custom live STT, the app runs two sockets through CompositeTranscriptionSocket:

  • the user's STT server (primary);
  • Omi's /v4/listen (secondary).

If the secondary fails to connect, or drops, the composite tears down the primary as well, then retries both every ~15 s. While Omi's listen socket is unavailable, the user's own transcription is therefore down too, even though their server is healthy.

Evidence (2 Oct 2026, BST)

App log, repeated every ~16 s:

20:09:25 [Composite] Connecting both sockets...
20:09:25 [customLive] Connected
[ERROR] 20:09:26 [Composite] Connection failed - primary: true, secondary: false
20:09:26 [customLive] Closed with code: null

Server side (my STT server):

  • 56 sessions today were opened and then closed by the app within ~0.6 s with CloseStream and no audio.
  • They came in bursts at 09:42, 15:18–15:20, 17:21–17:42 and 20:06–20:10.
  • Meanwhile Omi's REST API (/v1/mcp/people) answered normally from the same network at 17:52, 18:52 and 19:52.
  • Separately, between 17:48 and 20:06 no connection attempts reached my server at all, despite app restarts. That cause is unknown and is not addressed here.

Expected

A secondary (Omi) failure should not take down the primary. Custom STT should keep streaming and Omi should be retried in the background. Audio that never reached Omi must stay in the WAL for later sync.

Proposed fix

PR attached: opt-in keepPrimaryWhenSecondaryFails, enabled for the live custom-STT composite.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Oct 2, 2026
  2. added
    capture
    p1
    and removed
    capture
    p1
    on Oct 6, 2026
  3. aryanorastar commented on Oct 29, 2026

    @aryanorastar
    Collaborator

    Fixed on main in fd929e7d1d02. Live custom STT keeps the primary socket up when Omi's listen socket fails, and retries only the secondary socket.

  4. moved this from In progress to In review in omi TODO / bountieson Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    capturep1

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions