Skip to content

fix(native): update FluidAudio 0.12.4 → 0.14.4 for Swift 6.3 compatibility#377

Merged
shobhit99 merged 1 commit into
SuperCmdLabs:mainfrom
monotykamary:fix/fluidaudio-swift63
May 11, 2026
Merged

fix(native): update FluidAudio 0.12.4 → 0.14.4 for Swift 6.3 compatibility#377
shobhit99 merged 1 commit into
SuperCmdLabs:mainfrom
monotykamary:fix/fluidaudio-swift63

Conversation

@monotykamary
Copy link
Copy Markdown
Contributor

Problem

npm run build:native fails on Swift 6.3 (shipped with Xcode 16.4+) due to sending-data-race violations in FluidAudio 0.12.4:

StreamingAsrManager.swift:622:38: error: sending 'asrManager' risks causing data races [#SendingRisksDataRace]

This blocks all native binary compilation — parakeet, soulver, and everything else in the chain.

Changes

  • Package.swift — bump FluidAudio minimum from 0.12.4 to 0.14.4
  • Package.resolved — resolved pins updated (v0.14.4 also drops 23 transitive dependencies no longer needed)
  • Sources/main.swift — adapt to FluidAudio 0.14.4 API changes:
    • AsrManager() + initialize(models:)AsrManager(models:) (models passed at init)
    • transcribe(_:source:)transcribe(_:decoderState:) with explicit TdtDecoderState.make()

Testing

  • npm run build:native completes successfully — all 18 native binaries compile
  • parakeet-transcriber and soulver-calculator both build and copy to dist/native/
  • Swift 6.3 concurrency errors are resolved

…ility

FluidAudio 0.12.4 has sending-data-race violations that are fatal under
Swift 6.3's strict concurrency enforcement. Updating to 0.14.4 resolves
the Sendable concurrency errors.

Adapt parakeet-transcriber to FluidAudio 0.14.4 API changes:
- AsrManager() + initialize(models:) → AsrManager(models:)
- transcribe(_:source:) → transcribe(_:decoderState:) with TdtDecoderState.make()
@shobhit99 shobhit99 merged commit a8d63ee into SuperCmdLabs:main May 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants