Skip to content

Commit dceefc4

Browse files
authored
add @available(iOS 17.0, *) for VBxClustering and OfflineEmbeddingExt… (#182)
Although right now it dropped iOS 16 support, with this change, users can still change the package.swift to work on iOS 16.
1 parent 00a08c8 commit dceefc4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/FluidAudio/Diarizer/Offline/Clustering/VBxClustering.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import os.signpost
2222
///
2323
/// The implementation includes warm-start initialization from initial hard cluster
2424
/// assignments and supports PLDA whitening transformation of input features.
25+
@available(macOS 14.0, iOS 17.0, *)
2526
struct VBxClustering {
2627
private let config: OfflineDiarizerConfig
2728
private let pldaTransform: PLDATransform

Sources/FluidAudio/Diarizer/Offline/Extraction/OfflineEmbeddingExtractor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private struct OfflineChunkBatchInfo: Sendable {
5353
}
5454
}
5555

56+
@available(macOS 14.0, iOS 17.0, *)
5657
struct OfflineEmbeddingExtractor {
5758
private let fbankModel: MLModel
5859
private let embeddingModel: MLModel

0 commit comments

Comments
 (0)