FluidInference/FluidAudio
Swift and Core ML SDK for on-device speech processing on Apple devices
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
FluidAudio is a Swift SDK that runs audio models through Core ML on Apple devices. It targets the Apple Neural Engine (ANE) rather than a GPU/MPS pipeline. The SDK exposes inference through model-specific APIs: for offline diarization, OfflineDiarizerManager prepares the model bundles, then accepts resampled audio samples or a file URL. The file API uses memory-mapped reads; the Community-1 pipeline combines powerset segmentation, WeSpeaker embeddings, and VBx clustering.
Model delivery is separate from inference. The default loader fetches and compiles missing assets, while ModelRegistry supports alternate registries and revision overrides for mirrors. The repository includes separate Package.swift and Package@swift-6.2.swift manifests, an SDK product, and the fluidaudiocli entry point. Swift 6.2 package traits make TTS, diarization, and NeMo text processing optional at build time. React Native/Expo and Rust/Tauri wrappers provide additional integration paths without changing the Apple execution target.
Key Capabilities & Differentiators
The SDK provides streaming and file transcription, text-to-speech, Silero voice activity detection, online and offline speaker diarization, and speaker embedding extraction. Parakeet covers documented ASR workflows including end-of-utterance detection, while Nemotron provides English and multilingual streaming encoders. NeMo inverse text normalization can turn spoken forms such as “two hundred” into “200.” Kokoro synthesis supports pauses keyed to literal punctuation marks, so similar-looking marks can be timed independently.
For recorded meetings, the offline CLI benchmark can run the AMI ES2004a file and emit JSON with DER, JER, RTFx, and timings for segmentation, embedding extraction, and VBx clustering. For live capture, the beta LocalVQE pipeline suppresses loudspeaker echo, noise, and reverb in 16 kHz microphone audio given a far-end reference. Its stated 16 ms streaming latency applies to the enhancement stage, not the full voice application.
Trade-offs & Limitations
Compared with a standalone local ASR engine, FluidAudio is a better fit when transcription, VAD, speaker segmentation, and synthesis need to live in one Apple app. If the job is simply to transcribe files, compare recognition quality and packaging cost before adopting the broader SDK. Compared with a hosted speech API, local inference removes the network round trip from the inference path and allows audio to stay on the device. In exchange, the app owns model provisioning, storage, updates, and device-specific validation. The language wrappers do not make Core ML a cross-platform inference backend.
Treat ANE placement as something to verify for each model and chip, not an SDK-wide guarantee. Measure startup preparation separately from inference, then test peak memory, CPU use, and real-time throughput under the intended workload. Trait trimming reduces the build footprint but does not eliminate the need to provision the models you use. The SDK is Apache-2.0; check the licenses and redistribution obligations of the selected models and dependencies separately.
Hardware & Deployment Guide
Integrate the FluidAudio product with Swift Package Manager in an Apple app target or use swift run fluidaudiocli for local evaluation. Swift 6.2+/Xcode 26+ supports trait-based trimming: traits: [] retains ASR and VAD but removes TTS, diarization, and NeMo text processing. Older toolchains build all three optional subsystems. Automatic preparation downloads missing assets from Hugging Face by default. REGISTRY_URL redirects the CLI to a mirror, while https_proxy routes requests through a proxy. For STRICTLY offline use, provision compatible assets, enable ModelHub.offlineMode before any loader runs, and load from a local directory. Missing files produce a typed error, and a corrupt bundle is not silently redownloaded.
Recent fixes make exact release and model-bundle selection important. In v0.18.4, revised Nemotron encoder bundles rewrite the convolution-cache slice so M2 and M3 Neural Engines can compile the encoders instead of silently sending that work to the CPU. In v0.18.5, moving Kokoro alignment to a native Swift copy addresses a Core ML CPU-engine crash at the 48-token shape under .cpuAndNeuralEngine. Validate the exact bundle and software release on the Apple chips you plan to support.
Apple-device dictation, private meeting transcription, or voice interfaces that combine local ASR, VAD, diarization, and synthesis. The CLI is useful for validating batch workloads before app integration.
You need a single inference backend across Apple and non-Apple targets, or prefer a managed speech endpoint to shipping models and testing across device generations.
Quick Start & Installation
# Use custom registry export REGISTRY_URL=https://your-mirror.example.com swift run fluidaudiocli transcribe audio.wav # Or use the MODEL_REGISTRY_URL alias export MODEL_REGISTRY_URL=https://models.internal.corp swift run fluidaudiocli diarization-benchmark --auto-download
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| FluidAudio ★ | 3.4k | +14 | Swift | Apache-2.0 | Swift and Core ML SDK for on-device speech processing on Apple devices |
| sherpa-onnx | 16.4k | +136 | C++ | Apache-2.0 | C++ and ONNX Runtime SDK for offline speech and real-time transcription |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| Speech | 18.8k | +18 | Python | Apache-2.0 | PyTorch speech SDK for training, adapting, and running ASR, TTS, and SpeechLM mo |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/FluidInference/FluidAudio.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about FluidAudio
How do I add batch speaker diarization to a Swift app?
What hardware and memory budget should I plan for?
Can I ship it commercially and host the model assets myself?
When should I choose FluidAudio over a standalone ASR engine or a cloud API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy