# Repository Briefing: FluidInference/FluidAudio
> Source: https://repoforai.com/repo/FluidInference/FluidAudio (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/FluidInference/FluidAudio
- **Official Docs / Website**: https://docs.fluidinference.com/introduction
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Swift
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.18.5 (2026-11-29) — https://github.com/FluidInference/FluidAudio/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Local AI, CLI
- **Momentum**: 3,352 ★ total (+2 24h / +14 7d) · 542 forks
- **Topics**: `ane`, `asr`, `audio`, `automatic-speech-recognition`, `avfoundation`, `coreml`, `ios`, `macos`, `nvidia`, `parakeet`, `real-time`, `speaker-diarization`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Runtime: Swift and Core ML target ANE execution without relying on a GPU/MPS pipeline.
- Batch diarization: Community-1 combines powerset segmentation, WeSpeaker embeddings, and VBx clustering; the file API uses memory-mapped reads.
- Benchmarking: The offline AMI CLI benchmark exports DER, JER, RTFx, and per-stage timings as JSON.
- Streaming enhancement: The beta 4.8M-parameter LocalVQE processes 16 kHz microphone audio with a far-end reference at a stated 16 ms streaming latency.
- Build footprint: Swift 6.2+ package traits can omit TTS, diarization, and NeMo text processing; the optional ITN engine accounts for about 8 MB per slice.
- Offline provisioning: ModelHub.offlineMode rejects network fetches and disables automatic redownload; internal mirrors can map pinned revisions explicitly.
```

## Quick Start / Clone
```bash
# 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
```
