Expanded Apple languages support
This commit is contained in:
parent
eedd8667da
commit
51dc742e1e
@ -33,7 +33,7 @@ import Foundation
|
||||
} else {
|
||||
// For Apple Native models, return only supported languages in simple format
|
||||
if provider == .nativeApple {
|
||||
let appleSupportedCodes = ["en", "es", "fr", "de"]
|
||||
let appleSupportedCodes = ["ar", "de", "en", "es", "fr", "it", "ja", "ko", "pt", "yue", "zh"]
|
||||
return allLanguages.filter { appleSupportedCodes.contains($0.key) }
|
||||
}
|
||||
return allLanguages
|
||||
|
||||
@ -17,7 +17,14 @@ class NativeAppleTranscriptionService: TranscriptionService {
|
||||
"en": "en-US",
|
||||
"es": "es-ES",
|
||||
"fr": "fr-FR",
|
||||
"de": "de-DE"
|
||||
"de": "de-DE",
|
||||
"ar": "ar-SA",
|
||||
"it": "it-IT",
|
||||
"ja": "ja-JP",
|
||||
"ko": "ko-KR",
|
||||
"pt": "pt-BR",
|
||||
"yue": "yue-CN",
|
||||
"zh": "zh-CN"
|
||||
]
|
||||
return mapping[simpleCode] ?? "en-US"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user