You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parakeet: batch diarization uses external HTTP embeddings instead of built-in model #8081
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
Activity
Use built-in wespeaker model for batch diarization embeddings (BasedH…
Add torch_audiomentations to parakeet Dockerfile (#8085)
Enable built-in wespeaker embedding in NGC container
Fix CUDA stream conflict: route embedding through GPU worker thread