Fix: Move ESpeakNG.xcframework to top-level Frameworks directory (#205)

This PR moves `ESpeakNG.xcframework` from
`Sources/FluidAudio/Frameworks` to a top-level `Frameworks` directory.
This resolves a runtime error `Library not loaded:
@rpath/ESpeakNG.framework/ESpeakNG` experienced by users when
integrating FluidAudio, likely due to Xcode/SPM not correctly embedding
the framework when it's nested deep within the source structure.

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Alex
2025-11-29 02:59:58 -05:00
committed by GitHub
parent fe8f6bfc97
commit d540f0092d
2152 changed files with 2444 additions and 7143 deletions
-5
View File
@@ -59,11 +59,6 @@ Pod::Spec.new do |spec|
core.ios.frameworks = "CoreML", "AVFoundation", "Accelerate", "UIKit"
# macOS Configuration
# ESpeakNG framework is only vendored for macOS in the podspec (not a framework limitation).
# The xcframework supports iOS, but CocoaPods fails to link it during iOS validation.
# This enables TTS (text-to-speech) functionality with G2P (grapheme-to-phoneme) conversion.
# macOS builds include: ASR, Diarization, VAD, and TTS with ESpeakNG support.
core.osx.vendored_frameworks = "Sources/FluidAudio/Frameworks/ESpeakNG.xcframework"
core.osx.frameworks = "CoreML", "AVFoundation", "Accelerate", "Cocoa"
end