Added checks for Apple Transcription service
This commit is contained in:
parent
2e23f043f9
commit
4e006a9d0f
@ -108,7 +108,7 @@ import Foundation
|
||||
NativeAppleModel(
|
||||
name: "apple-speech",
|
||||
displayName: "Apple Speech",
|
||||
description: "Uses the native Apple Speech framework for transcription. Available on macOS Sonoma 14+.",
|
||||
description: "Uses the native Apple Speech framework for transcription. Requires macOS 26.",
|
||||
isMultilingualModel: true,
|
||||
supportedLanguages: getLanguageDictionary(isMultilingual: true, provider: .nativeApple)
|
||||
),
|
||||
|
||||
@ -7,8 +7,11 @@ extension WhisperState {
|
||||
case .local:
|
||||
return availableModels.contains { $0.name == model.name }
|
||||
case .nativeApple:
|
||||
// Native Apple models are always available (though they require macOS 26+)
|
||||
return true
|
||||
if #available(macOS 26, *) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
case .groq:
|
||||
let key = UserDefaults.standard.string(forKey: "GROQAPIKey")
|
||||
return key != nil && !key!.isEmpty
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user