Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

1.4 KB
Raw Blame
require 'json'

package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))

Pod::Spec.new do |s|
  s.name           = 'ParakeetASR'
  s.version        = package['version']
  s.summary        = package['description']
  s.description    = package['description']
  s.license        = package['license'] || 'MIT'
  s.author         = 'OpenWhispr Team'
  s.homepage       = 'https://github.com/OpenWhispr/open-whispr-mobile'
  # FluidAudio requires iOS 17; the app's deployment target is already 17 (expo-build-properties in app.base.json).
  s.platforms      = {
    :ios => '17.0'
  }
  s.swift_version  = '5.9'
  s.source         = { git: 'https://github.com/OpenWhispr/open-whispr-mobile.git' }
  s.static_framework = true

  s.dependency 'ExpoModulesCore'

  # FluidAudio is consumed as a Swift Package compiled from source via the cocoapods-spm plugin.
  # The package SOURCE (git url + pinned version 0.15.4) is declared ONCE in the Podfile by
  # plugins/speaker-diarization/withSpeakerDiarization.js — this module reuses that same declaration
  # (both diarization and ASR ship in the single FluidAudio product), so NO new config plugin is needed.
  # Per cocoapods-spm, the podspec must NOT restate the source here.
  s.spm_dependency 'FluidAudio/FluidAudio'

  s.pod_target_xcconfig = {
    'DEFINES_MODULE' => 'YES',
    'SWIFT_COMPILATION_MODE' => 'wholemodule'
  }

  s.source_files = '**/*.{h,m,swift}'
end