Skip to main content

Swift Package Manager

Choosing a Product

FluidAudio provides two library products:
  • FluidAudio (default) — Core functionality: ASR, diarization, VAD. Lightweight, no GPL dependencies.
  • FluidAudioTTS — Text-to-Speech (Kokoro). Includes ESpeakNG framework (GPL-3.0). Only bundled if you explicitly add it.
In Package.swift:
In Xcode:
  1. File > Add Package Dependencies
  2. Enter the FluidAudio repository URL
  3. Select your desired product (FluidAudio or FluidAudioTTS)
  4. Add to your app target

CocoaPods

We recommend using cocoapods-spm for better SPM integration, but you can also use the podspec:

Other Frameworks

The Kokoro TTS tooling currently ships arm64-only dependencies. See the TTS docs if you hit linker errors targeting x86_64.