From cc086c1d9256b0db8ca96c2477be7a0fda9289e2 Mon Sep 17 00:00:00 2001 From: Anton Lvovych Date: Mon, 27 Oct 2025 15:16:40 +0700 Subject: [PATCH] Update FluidAudio to latest with ESpeakNG framework fix - Update FluidAudio to f47209a which includes ESpeakNG framework fix - Fix VadConfig API compatibility: threshold -> defaultThreshold - Add WorkspaceSettings to allow FluidAudio's unsafe build flags This resolves the dyld crash: "Library not loaded: ESpeakNG.framework/Versions/A/ESpeakNG" Fixed upstream in FluidInference/FluidAudio#159 and FluidInference/FluidAudio#160 Tested: All 4 UI tests pass --- .../xcshareddata/WorkspaceSettings.xcsettings | 14 ++++++++++++++ .../xcshareddata/swiftpm/Package.resolved | 10 +++++----- .../Services/ParakeetTranscriptionService.swift | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..135a22a --- /dev/null +++ b/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,14 @@ + + + + + BuildSystemType + Original + DisableBuildSystemDeprecationWarning + + IDEPackageSupportUseBuiltinSCM + + IDEPackageSupportUnsafeFlagsAllowed + + + diff --git a/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index aad3205..9cb1177 100644 --- a/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/VoiceInk.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -7,7 +7,7 @@ "location" : "https://github.com/FluidInference/FluidAudio", "state" : { "branch" : "main", - "revision" : "eec3d961f7bfab3d161dd39aeebfc861fcfb25b8" + "revision" : "f47209a44e26c8d930983358e497c581bfb9442d" } }, { @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/sindresorhus/KeyboardShortcuts", "state" : { - "revision" : "045cf174010beb335fa1d2567d18c057b8787165", - "version" : "2.3.0" + "revision" : "1aef85578fdd4f9eaeeb8d53b7b4fc31bf08fe27", + "version" : "2.4.0" } }, { @@ -42,8 +42,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/sparkle-project/Sparkle", "state" : { - "revision" : "df074165274afaa39539c05d57b0832620775b11", - "version" : "2.7.1" + "revision" : "9a1d2a19d3595fcf8d9c447173f9a1687b3dcadb", + "version" : "2.8.0" } }, { diff --git a/VoiceInk/Services/ParakeetTranscriptionService.swift b/VoiceInk/Services/ParakeetTranscriptionService.swift index b3c1690..0c0b2f0 100644 --- a/VoiceInk/Services/ParakeetTranscriptionService.swift +++ b/VoiceInk/Services/ParakeetTranscriptionService.swift @@ -50,7 +50,7 @@ class ParakeetTranscriptionService: TranscriptionService { var speechAudio = audioSamples if durationSeconds >= 20.0, isVADEnabled { - let vadConfig = VadConfig(threshold: 0.7) + let vadConfig = VadConfig(defaultThreshold: 0.7) if vadManager == nil { do { vadManager = try await VadManager(config: vadConfig)