diff --git a/apple/Omnivore.xcworkspace/xcshareddata/swiftpm/Package.resolved b/apple/Omnivore.xcworkspace/xcshareddata/swiftpm/Package.resolved index 4d0dfb64b..d60e90e69 100644 --- a/apple/Omnivore.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/apple/Omnivore.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -167,8 +167,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/PSPDFKit/PSPDFKit-SP", "state" : { - "revision" : "f4ba9790488b8f11c29cff35943e430efcdb8003", - "version" : "12.0.1" + "revision" : "fcff39b2b7741662286dc4323ea255a0ea53fcd3", + "version" : "13.1.0" } }, { diff --git a/apple/OmnivoreKit/Package.swift b/apple/OmnivoreKit/Package.swift index afe997291..46084404c 100644 --- a/apple/OmnivoreKit/Package.swift +++ b/apple/OmnivoreKit/Package.swift @@ -73,6 +73,6 @@ var dependencies: [Package.Dependency] { .package(url: "https://github.com/PostHog/posthog-ios.git", from: "2.0.0") ] // Comment out following line for macOS build - deps.append(.package(url: "https://github.com/PSPDFKit/PSPDFKit-SP", from: "12.0.1")) + deps.append(.package(url: "https://github.com/PSPDFKit/PSPDFKit-SP", from: "13.1.0")) return deps } diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift index eed60792a..2f1bb8c6f 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/TextToSpeechVoiceSelectionView.swift @@ -46,7 +46,7 @@ } } - if audioController.useUltraRealisticVoices { + if viewModel.realisticVoicesToggle, !audioController.ultraRealisticFeatureKey.isEmpty { if showLanguageChanger { Section("Language") { NavigationLink(destination: TextToSpeechLanguageView().navigationTitle("Language")) { diff --git a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift index 3694a7f8b..3ca53e2e1 100644 --- a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift +++ b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift @@ -75,6 +75,7 @@ public func play(itemAudioProperties: LinkedItemAudioProperties) { stop() + playbackError = false self.itemAudioProperties = itemAudioProperties startAudio(atIndex: itemAudioProperties.startIndex, andOffset: itemAudioProperties.startOffset) @@ -356,6 +357,7 @@ currentOffset = CMTimeGetSeconds(player.currentTime()) } player?.removeAllItems() + playbackError = false downloadAndPlayFrom(currentIdx, currentOffset) }