fix(tts/kokoro-ane): route noise+tail to CPU by default on OS 27 - #849
Conversation
On the OS 27 line the default routing's two GPU stages abort intermittently inside MPSGraph under CoreML (signal 6 in-process abort, uncatchable; FB24243070). Add an aneTailCpu preset (noise + tail on .cpuOnly, RNN stages and vocoder unchanged on ANE) and make .default OS-conditional: aneTailGpu through OS 26, aneTailCpu on 27+. The BNNS iSTFT path this falls back to is safe on 27 — the libBNNS segfault is a 26.x-line bug (#817/#844). Field-validated on iPadOS 27.0 (iPad Pro M5) with imperceptible perf cost for speech-length inputs.
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: 10m51s • 08/11/2026, 02:38 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% |
Parakeet EOU Benchmark Results ✅Status: Benchmark passed Performance Metrics
Streaming Metrics
Test runtime: 1m56s • 08/11/2026, 02:59 PM EST RTFx = Real-Time Factor (higher is better) • Processing includes: Model inference, audio preprocessing, state management, and file I/O |
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 • 123.8s processing • Test runtime: 2m 22s • 08/11/2026, 03:02 PM EST |
PocketTTS Smoke Test ✅
Runtime: 1m25s Note: PocketTTS uses CoreML MLState (macOS 15) KV cache + Mimi streaming state. CI VM lacks physical GPU — audio quality and performance may differ from Apple Silicon. |
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 • 65.5s diarization time • Test runtime: 4m 6s • 08/11/2026, 03:17 PM EST |
Supertonic3 Smoke Test ✅
Runtime: 0m37s Note: CI VMs lack a physical Neural Engine; the ANE-bucketed VectorEstimator falls back to CPU here. This validates download + variant resolution + synthesis, not ANE residency/perf. |
Sortformer High-Latency Benchmark ResultsES2004a Performance (30.4s latency config)
Sortformer High-Latency • ES2004a • Runtime: 2m 56s • 2026-08-11T19:22:36.093Z |
Fixes #843.
Problem
On the OS 27 line (observed on iPadOS 27.0 beta, iPad Pro M5), the default routing's two GPU-by-design stages (noise, tail iSTFT) abort intermittently inside MPSGraph under CoreML — an in-process signal-6 abort no fallback can catch, typically within ~an hour of continuous synthesis. Filed with Apple as FB24243070. The same binary and models are stable on OS 26.x.
Fix
aneTailCpupreset: noise + tail on.cpuOnly, RNN stages and vocoder unchanged on.cpuAndNeuralEngine— Metal is never invoked. This is exactly the workaround the reporter has been shipping, with imperceptible perf cost for speech-length inputs..defaultbecomes OS-conditional via a testabledefaultUnits(for:)seam:aneTailGputhrough OS 26 (bit-identical to today's default),aneTailCpuon 27+.The BNNS iSTFT path that noise/tail fall back to is safe on 27 — the libBNNS segfault is a 26.x-line bug (#817/#844).
Testing
KokoroAneComputeUnitsTests: version cutover at 27.0, 26.x unchanged, andaneTailCpunever touching.cpuAndGPU/.all.swift build --target FluidAudioclean,swift format lintclean.