2 Commits

Author SHA1 Message Date
Evan Rosenfeld bd0467fdc4 fix: MachTaskSelfWrapper module import and remove unused preprocessorFile from requiredModels (#248)
Fix MachTaskSelfWrapper module import and remove unused preprocessorFile
from requiredModels

This patch fixes two issues in FluidAudio 0.9.1:

1. MachTaskSelfWrapper module import error
Swift code cannot `import MachTaskSelfWrapper` because the C library
lacks a
module.modulemap file. This adds the modulemap and configures it in the
podspec.

2. preprocessorFile in ParakeetEOU.requiredModels
The preprocessor model is no longer used (replaced by native Swift
NeMoMelSpectrogram
in StreamingEouAsrManager), but it's still listed in requiredModels.
This causes
model download validation to fail since the file doesn't exist in the
HuggingFace repo.
2026-01-04 15:59:35 -05:00
Alex 73fb84aa9d feat: Migrate to Swift 6 with strict concurrency (#233)
- Update Package.swift to swift-tools-version: 6.0
- Add @preconcurrency import CoreML/AVFoundation throughout codebase
- Make structs Sendable (AppLogger, DownloadConfig, etc.)
- Use nonisolated(unsafe) for static mutable state
- Fix AudioStream by removing @unchecked Sendable, making AsyncCallback
@Sendable
- Fix Task closures with proper explicit captures
- Convert concurrent tests to sequential where types aren't Sendable
- Add @MainActor to test methods using waitForExpectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

### Why is this change needed?
<!-- Explain the motivation for this change. What problem does it solve?
-->

resolve #231
2025-12-31 14:57:14 -05:00