feat: migrate on-device Qwen3 ASR to CoreML for background Flow dictation
Replace MLX GPU inference with CoreML bundles so transcription continues while the host app is backgrounded. Adds model download and warm-up, vendored Qwen3Speech, and updates onboarding, settings, and copy for the ~1.6 GB CoreML package (iOS 18+).
This commit is contained in:
@@ -7,20 +7,27 @@
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
import OSGKeyboardShared
|
||||
|
||||
enum ExtL10n {
|
||||
private static let table = "Keyboard"
|
||||
private static let bundle = Bundle(for: KeyboardViewController.self)
|
||||
private static let container = Bundle(for: KeyboardViewController.self)
|
||||
|
||||
private static var bundle: Bundle {
|
||||
AppUILanguage.localizedBundle(
|
||||
in: container,
|
||||
language: AppGroupStore().uiLanguage
|
||||
)
|
||||
}
|
||||
|
||||
static func string(_ key: String) -> String {
|
||||
let value = NSLocalizedString(
|
||||
NSLocalizedString(
|
||||
key,
|
||||
tableName: table,
|
||||
bundle: bundle,
|
||||
value: key,
|
||||
comment: ""
|
||||
)
|
||||
return value
|
||||
}
|
||||
|
||||
static func text(_ key: String) -> Text {
|
||||
|
||||
Reference in New Issue
Block a user