Fix offline diarizer PLDA parameters download#459
Conversation
The offline diarizer benchmark was failing in CI because the PLDA parameters JSON file was not being downloaded when downloading offline diarizer models. The requiredModels set only included the 4 .mlmodelc files but not the plda-parameters.json file that's required by OfflineDiarizerModels.loadPLDAPsi(). This caused the error: PLDA parameters file not found in /Users/runner/Library/Application Support/FluidAudio/Models Fixes the diarization-benchmark.yml workflow failure.
|
Claude finished @Alex-Wengg's task —— View job I'll analyze this and get back to you. |
PocketTTS Smoke Test ✅
Runtime: 0m43s Note: PocketTTS uses CoreML MLState (macOS 15) KV cache + Mimi streaming state. CI VM lacks physical GPU — audio quality may differ from Apple Silicon. |
Qwen3-ASR int8 Smoke Test ✅
Runtime: 4m8s Note: CI VM lacks physical GPU — CoreML MLState (macOS 15) KV cache produces degraded results on virtualized runners. On Apple Silicon: ~1.3% WER / 2.5x RTFx. |
Sortformer High-Latency Benchmark ResultsES2004a Performance (30.4s latency config)
Sortformer High-Latency • ES2004a • Runtime: 2m 28s • 2026-03-28T20:40:05.115Z |
Parakeet EOU Benchmark Results ✅Status: Benchmark passed Performance Metrics
Streaming Metrics
Test runtime: 1m8s • 03/28/2026, 04:44 PM EST RTFx = Real-Time Factor (higher is better) • Processing includes: Model inference, audio preprocessing, state management, and file I/O |
Speaker Diarization Benchmark ResultsSpeaker Diarization PerformanceEvaluating "who spoke when" detection accuracy
Diarization Pipeline Timing BreakdownTime spent in each stage of speaker diarization
Speaker Diarization Research ComparisonResearch baselines typically achieve 18-30% DER on standard datasets
Note: RTFx shown above is from GitHub Actions runner. On Apple Silicon with ANE:
🎯 Speaker Diarization Test • AMI Corpus ES2004a • 1049.0s meeting audio • 38.4s diarization time • Test runtime: 2m 21s • 03/28/2026, 04:54 PM EST |
Offline VBx Pipeline ResultsSpeaker Diarization Performance (VBx Batch Mode)Optimal clustering with Hungarian algorithm for maximum accuracy
Offline VBx Pipeline Timing BreakdownTime spent in each stage of batch diarization
Speaker Diarization Research ComparisonOffline VBx achieves competitive accuracy with batch processing
Pipeline Details:
🎯 Offline VBx Test • AMI Corpus ES2004a • 1049.0s meeting audio • 222.1s processing • Test runtime: 3m 47s • 03/28/2026, 04:54 PM EST |
ASR Benchmark Results ✅Status: All benchmarks passed Parakeet v3 (multilingual)
Parakeet v2 (English-optimized)
Streaming (v3)
Streaming (v2)
Streaming tests use 5 files with 0.5s chunks to simulate real-time audio streaming 25 files per dataset • Test runtime: 5m51s • 03/28/2026, 04:55 PM EST RTFx = Real-Time Factor (higher is better) • Calculated as: Total audio duration ÷ Total processing time Expected RTFx Performance on Physical M1 Hardware:• M1 Mac: ~28x (clean), ~25x (other) Testing methodology follows HuggingFace Open ASR Leaderboard |
VAD Benchmark ResultsPerformance Comparison
Dataset Details
✅: Average F1-Score above 70% |
Problem
The offline diarizer benchmark was failing in CI with this error:
This occurred in the
diarization-benchmark.ymlworkflow when running:Root Cause
The
OfflineDiarizer.requiredModelsset only included the 4.mlmodelcfiles:Segmentation.mlmodelcFBank.mlmodelcEmbedding.mlmodelcPldaRho.mlmodelcBut it was missing
plda-parameters.json, which is required byOfflineDiarizerModels.loadPLDAPsi()to load the PLDA psi parameters for VBx clustering.When
DownloadUtils.downloadRepo()downloads models, it only downloads files in therequiredModelsset. Sinceplda-parameters.jsonwasn't in the set, it never got downloaded, causing the initialization to fail.Solution
Added
plda-parameters.jsonto theOfflineDiarizer.requiredModelsset inModelNames.swift.Testing
🤖 Generated with Claude Code