Skip to content

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

1.3 KB
Raw Blame
require 'json'

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

Pod::Spec.new do |s|
  s.name           = 'SpeakerDiarization'
  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; this also lifts the app's main pod target (see 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 (speaker diarization) is consumed as a Swift Package compiled from source via the
  # cocoapods-spm plugin — FluidAudio's recommended CocoaPods integration. The package SOURCE
  # (git url + pinned version) is declared in the Podfile by plugins/speaker-diarization/
  # withSpeakerDiarization.js; 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