Skip to content

Parakeet: batch diarization uses external HTTP embeddings instead of built-in model #8081

Closed

Description

@beastoin

Facts

The parakeet service has two diarization paths with inconsistent embedding implementations:

Streaming path (stream_handler.py — /v3/stream):

  • Loads wespeaker-voxceleb-resnet34-LM locally via pyannote (line 64)
  • Uses built-in model first, falls back to HTTP only if built-in fails (lines 731-735)
  • No external HTTP calls for embeddings in normal operation

Batch path (transcribe.py — /v2/transcribe):

  • Always calls external diarizer service via HTTP (line 277):
    POST http://prod-omi-diarizer.prod-omi-backend.svc.cluster.local:8080/v2/embedding
  • Has no built-in embedding path
  • Generates one HTTP round-trip per audio segment per request
  • At peak: ~18 requests/sec = 1,118 httpx log lines/min (82% of all parakeet logs)

Prod config (prod_omi_parakeet_values.yaml):

  • HOSTED_SPEAKER_EMBEDDING_API_URL is set to the diarizer cluster-internal URL (line 108)
  • The built-in wespeaker model is already loaded by stream_handler.py in the same process

Files

  • backend/parakeet/transcribe.py:272 — _get_embedding() always uses HTTP
  • backend/parakeet/stream_handler.py:52 — _get_builtin_embedding_model() loads wespeaker locally
  • backend/parakeet/stream_handler.py:730 — _get_embedding() uses built-in first, HTTP fallback
  • backend/charts/parakeet/prod_omi_parakeet_values.yaml:108 — HOSTED_SPEAKER_EMBEDDING_API_URL

Activity

  1. added 3 commits that reference this issue on Jun 22, 2026
    f976864
    e0759ef
    4115fda
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions