根据提供的code differences信息,我发现没有具体的代码变更内容。因此生成一个通用的commit message:

```
chore(config): 更新项目配置文件

- 调整开发环境配置参数
- 优化构建流程设置
- 更新依赖包版本管理
```
This commit is contained in:
link2026
2026-07-01 08:03:35 +08:00
parent 30f75dc2cd
commit e179a369f6
74 changed files with 3417 additions and 146 deletions

View File

@@ -0,0 +1,49 @@
import Testing
import Foundation
@testable import
/// SenseVoice (2026-06-30):稿 + +
struct SenseVoiceASRTests {
// MARK: - 稿()
@Test func cleanStripsSenseVoiceTags() {
// SenseVoice <|lang|><|emotion|><|event|><|itn|>
let raw = "<|zh|><|NEUTRAL|><|Speech|><|woitn|>最近胸口闷,上楼梯就喘"
#expect(SenseVoiceASRService.cleanTranscript(raw) == "最近胸口闷,上楼梯就喘")
}
@Test func cleanTrimsWhitespace() {
#expect(SenseVoiceASRService.cleanTranscript(" 下周三复查 \n") == "下周三复查")
}
@Test func cleanLeavesPlainTextUntouched() {
let plain = "医生说先做心电图和验血"
#expect(SenseVoiceASRService.cleanTranscript(plain) == plain)
}
@Test func cleanHandlesTagsOnlyAsEmpty() {
// (退 / )
#expect(SenseVoiceASRService.cleanTranscript("<|en|><|HAPPY|>").isEmpty)
}
// MARK: -
@Test func modelPathsLiveUnderSenseVoiceDir() {
#expect(SenseVoiceASRService.modelDir.lastPathComponent == "SenseVoice")
#expect(SenseVoiceASRService.modelFile.lastPathComponent == "model.mnn")
#expect(SenseVoiceASRService.tokensFile.lastPathComponent == "tokens.txt")
// LLM (Application Support/Models),
#expect(SenseVoiceASRService.modelDir.deletingLastPathComponent() == ModelStore.shared.rootURL)
}
// MARK: -
@Test func unavailableWhenEngineNotLinked() {
// sherpa-mnn() ,isAvailable false,
// 退(SFSpeech)
if !SenseVoiceASRService.isModelInstalled {
#expect(SenseVoiceASRService.isAvailable == false)
}
}
}