Skip to content

Docker: Rust LiveKit agent needs livekit-webrtc feature (STT/TTS broken) #765

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#765",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Problem

The Rust LiveKit WebRTC agent is compiled with a stub in Docker because webrtc-sys requires X11/glib system libraries that aren't available in the Alpine container.

This means:

  • No STT: Human audio reaches LiveKit server but no agent subscribes to transcribe it
  • No TTS: AI personas can't publish synthesized speech to the LiveKit room
  • No subtitles: No transcription = no captions displayed
  • No AI voice presence: Personas "join" at the DB level but never connect to WebRTC

Whisper model loads fine (large v3, 1.6GB) — the inference is ready, just no audio reaches it.

Root Cause

continuum-core.Dockerfile disables the livekit-webrtc feature:

⚠️ LiveKit WebRTC agent disabled (compiled without livekit-webrtc feature)

webrtc-sys crate requires:

  • libX11 / X11 headers
  • glib / glib headers
  • Possibly PulseAudio or ALSA for audio capture

Possible Solutions

  1. Add X11/glib dev packages to the Docker build — apk add libx11-dev glib-dev (or equivalent for the build stage)
  2. Use headless/server WebRTC build — webrtc-sys may have a server-only mode without display dependencies
  3. Switch to LiveKit's Rust SDK server mode — livekit-api crate for server-side agent without full WebRTC stack
  4. Separate agent container — build the agent on a different base image with X11 libs

Impact

LiveKit infrastructure is proven working (PR #740):

  • WebSocket signaling via Tailscale serve: working
  • WebRTC PeerConnection via UDP over Tailscale mesh: working
  • Human video/audio publishing: working
  • ICE candidates on correct Tailscale IP: working

Only missing piece is the server-side agent that receives and produces audio.

Related

Activity

  1. m13v commented on Apr 4, 2026

    @m13v

    the X11/glib dependency issue for webrtc-sys in Docker is a common pain point. we dealt with similar problems running audio processing pipelines in containers.

    for a server-side agent that only needs to receive and produce audio (no display rendering), you likely don't need the full WebRTC stack compiled with display dependencies. the livekit-api crate (option 3) is probably the cleanest path. it gives you room-level audio track subscription and publishing without pulling in the native WebRTC libraries that need X11.

    if you do need the full webrtc-sys, switching from Alpine to a Debian-based image (debian:bookworm-slim) makes the dependency resolution much simpler. Alpine's musl libc causes additional linking headaches with webrtc-sys beyond just the X11 issue. on Debian you'd need libx11-dev, libglib2.0-dev, and libasound2-dev. the image is larger but builds reliably.

    also, since you mentioned Whisper large v3 loads fine at 1.6GB, make sure your Docker memory limits account for both the model and the WebRTC audio buffers. WebRTC can allocate significant memory for jitter buffers, especially with multiple participants.

  2. m13v commented on Apr 4, 2026

    @m13v

    our voice transcription service that handles the audio pipeline and model management (on the application side rather than Docker): https://github.com/m13v/fazm/blob/main/Desktop/Sources/TranscriptionService.swift

    if you end up going the separate agent container route, the audio processing patterns should be useful reference for the STT integration once you get the WebRTC audio feed working.

  3. added
    airc-queue
    on May 14, 2026
  4. github-actions commented on Jul 19, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  5. github-actions commented on Aug 19, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

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

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions