Skip to content

Commit 6d0d9d1

Browse files
ZhaoChaoqunclaude
andcommitted
Switch default model to Streaming Paraformer with CT-Transformer punctuation
- Change default ASR model from FunASR Nano to Streaming Paraformer - Auto-download CT-Transformer punctuation model on first launch - Reorder model list to show Streaming Paraformer first - Bump version to 1.2.12 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be915bc commit 6d0d9d1

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

Sources/RecordingManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RecordingManager {
2020
let model = ASRModelType(rawValue: rawValue) {
2121
return model
2222
}
23-
return .funasrNano
23+
return .streamingParaformer
2424
}
2525
set {
2626
UserDefaults.standard.set(newValue.rawValue, forKey: "selectedASRModel")

Sources/SettingsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ModelDownloadManager: ObservableObject {
1919
let model = ASRModelType(rawValue: rawValue) {
2020
selectedModel = model
2121
} else {
22-
selectedModel = .funasrNano
22+
selectedModel = .streamingParaformer
2323
}
2424
checkModelsExist()
2525
}

Sources/SherpaOnnxManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import Foundation
22

33
/// ASR 模型类型
44
enum ASRModelType: String, CaseIterable, Identifiable {
5-
case funasrNano = "funasr-nano"
65
case streamingParaformer = "streaming-paraformer"
6+
case funasrNano = "funasr-nano"
77

88
var id: String { rawValue }
99

Sources/TypelessApp.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5656
print(">>> 首次启动,自动下载默认模型...")
5757
downloadManager.downloadModel()
5858
}
59+
if !downloadManager.punctuationDownloaded {
60+
print(">>> 自动下载标点模型...")
61+
downloadManager.downloadPunctuationModel()
62+
}
5963
}
6064

6165
private func setupStatusBar() {

Typeless.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@
365365
"$(inherited)",
366366
"$(SRCROOT)/Frameworks/sherpa-onnx/lib",
367367
);
368-
MARKETING_VERSION = 1.2.11;
368+
MARKETING_VERSION = 1.2.12;
369369
PRODUCT_BUNDLE_IDENTIFIER = com.typeless.app;
370370
PRODUCT_NAME = "Nano Typeless";
371371
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -401,7 +401,7 @@
401401
"$(inherited)",
402402
"$(SRCROOT)/Frameworks/sherpa-onnx/lib",
403403
);
404-
MARKETING_VERSION = 1.2.11;
404+
MARKETING_VERSION = 1.2.12;
405405
PRODUCT_BUNDLE_IDENTIFIER = com.typeless.app;
406406
PRODUCT_NAME = "Nano Typeless";
407407
SWIFT_EMIT_LOC_STRINGS = YES;

0 commit comments

Comments
 (0)