Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public struct OfflineDiarizerModels: Sendable {
private static func loadPLDAPsi(from directory: URL) throws -> [Double] {
let candidatePaths = [
directory.appendingPathComponent("plda-parameters.json", isDirectory: false),
directory.appendingPathComponent("speaker-diarization/plda-parameters.json", isDirectory: false),
directory.appendingPathComponent("speaker-diarization-coreml/plda-parameters.json", isDirectory: false),
directory.appendingPathComponent("speaker-diarization-offline/plda-parameters.json", isDirectory: false),
]
Expand Down
12 changes: 3 additions & 9 deletions Sources/FluidAudio/ModelNames.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,8 @@ public enum Repo: String, CaseIterable {
return "nemotron-streaming/560ms"
case .sortformer:
return "sortformer"
case .lseend:
return "ls-eend"
case .pocketTts:
return "pocket-tts"
case .multilingualG2p:
return "charsiu-g2p-byt5"
case .parakeetTdtCtc110m:
return "parakeet-tdt-ctc-110m"
default:
return name
return name.replacingOccurrences(of: "-coreml", with: "")
}
}
}
Expand Down Expand Up @@ -166,6 +158,7 @@ public enum ModelNames {
public static let fbank = "FBank"
public static let embedding = "Embedding"
public static let pldaRho = "PldaRho"
public static let pldaParameters = "plda-parameters.json"

public static let segmentationFile = segmentation + ".mlmodelc"
public static let fbankFile = fbank + ".mlmodelc"
Expand All @@ -182,6 +175,7 @@ public enum ModelNames {
fbankPath,
embeddingPath,
pldaRhoPath,
pldaParameters,
]
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/FluidAudioTests/ASR/Parakeet/ModelNamesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ final class ModelNamesTests: XCTestCase {
// Verify name (repo slug with -coreml suffix)
XCTAssertEqual(repo.name, "parakeet-tdt-ctc-110m-coreml")

// Verify folder name (simplified local folder name)
// Verify folder name (simplified - strips -coreml suffix by default)
XCTAssertEqual(repo.folderName, "parakeet-tdt-ctc-110m")

// Should have no subpath (not a variant repo)
Expand Down
Loading