-
-
Notifications
You must be signed in to change notification settings - Fork 25
feat: lower deployment target to macOS 15 with macOS 26 API fallback #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // swift-tools-version: 5.10 | ||
| // swift-tools-version: 5.9 | ||
|
|
||
| import PackageDescription | ||
|
|
||
|
|
@@ -22,6 +22,9 @@ let package = Package( | |
| resources: [ | ||
| .copy("Resources/AppIcon/AppIcon-512.png"), | ||
| .copy("Resources/silero_vad.onnx"), | ||
| ], | ||
| swiftSettings: [ | ||
| .define("SUPPORTS_SPEECH_TRANSCRIBER"), | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ] | ||
| ), | ||
| .testTarget( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,16 @@ import Foundation | |
| enum InputSourceCategory: String, CaseIterable, Codable { | ||
| case application | ||
| case microphone | ||
| case systemAudio | ||
|
|
||
| func displayName(in languageID: String) -> String { | ||
| switch self { | ||
| case .application: | ||
| return AppLocalization.string(.application, languageID: languageID) | ||
| case .microphone: | ||
| return AppLocalization.string(.microphone, languageID: languageID) | ||
| case .systemAudio: | ||
| return "System Audio" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoded English string bypasses |
||
| } | ||
| } | ||
| } | ||
|
|
@@ -20,6 +23,13 @@ struct InputSource: Identifiable, Hashable, Codable { | |
| let detail: String | ||
| let category: InputSourceCategory | ||
|
|
||
| static let systemAudio = InputSource( | ||
| id: "system:audio", | ||
| name: "System Audio", | ||
| detail: "system-audio", | ||
| category: .systemAudio | ||
| ) | ||
|
|
||
| static let preview = InputSource( | ||
| id: "preview", | ||
| name: AppLocalization.string(.previewSource, languageID: "en"), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,19 +75,19 @@ struct ModeConfig: Sendable { | |
| let minSilenceCommitMs: Int | ||
|
|
||
| static let balanced = ModeConfig( | ||
| firstTokenTargetMs: 300, | ||
| commitSourceTargetMs: 600, | ||
| commitTranslationTargetMs: 900, | ||
| firstTokenTargetMs: 250, | ||
| commitSourceTargetMs: 500, | ||
| commitTranslationTargetMs: 750, | ||
| maxChunkAudioSec: 3.0, | ||
| minSilenceCommitMs: 280 | ||
| minSilenceCommitMs: 200 | ||
| ) | ||
|
|
||
| static let follow = ModeConfig( | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These timing retunes (plus the default mode change |
||
| firstTokenTargetMs: 200, | ||
| commitSourceTargetMs: 450, | ||
| commitTranslationTargetMs: 700, | ||
| maxChunkAudioSec: 2.2, | ||
| minSilenceCommitMs: 220 | ||
| firstTokenTargetMs: 150, | ||
| commitSourceTargetMs: 350, | ||
| commitTranslationTargetMs: 500, | ||
| maxChunkAudioSec: 1.8, | ||
| minSilenceCommitMs: 150 | ||
| ) | ||
|
|
||
| static let reading = ModeConfig( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swift-tools-version downgrade 5.10 → 5.9 is unexplained — presumably to support an older Xcode. Worth confirming this is intentional and noting why.