Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

refactor: rename the Swift package, targets and source folders from LiveSubs to Cicada

wquguru19dd8292e67b
diff --git a/AGENTS.md b/AGENTS.md
index 2739ae3..47267bd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -25,13 +25,13 @@ Cicada (知了, formerly Live Subs) turns what a computer plays into live transl
- Ground `#F3F4F6`, white cards (the main window is one white sheet, no cards), ink `#15171C`, one accent `#E8552B` for "live", greys `#5A5F6B` / `#6B7080`. Design canvases on claude.ai and the app itself are the source of truth.
- Copy is Chinese and short, at most one grey helper line. Chinese text is the localization key; `Resources/{en,ja,ko}.lproj` translate it. SwiftUI literals localize themselves; other UI strings use `L("…")`; never `L()` prompts, logs or stored values. After changing UI text run `python3 scripts/strings.py` (`--write` adds TODOs), and check the English UI, which runs wider.
-- The logo geometry is kept in step in `CicadaLogo` (`Onboarding.swift`), `Sources/LiveSubsIcon` and `site/icon.svg`; then rerun `scripts/site-images.sh`.
+- The logo geometry is kept in step in `CicadaLogo` (`Onboarding.swift`), `Sources/CicadaIcon` and `site/icon.svg`; then rerun `scripts/site-images.sh`.
## Layout
-- `Sources/LiveSubs`: the app, one concern per file. Engines are UI-free (`ListenEngine`, `SpeakEngine`, `SpeakTest`, `Notes`, `Translator`, `Ling`, `VirtualMic`, `SessionStore`, `Updates`…); `AppModel` wires them and holds the debug commands. Settings keys: `AppSettings` in `Settings.swift`.
-- `Sources/LiveSubsIcon`: renders the icon set. `site/`: the website, built by `scripts/site.py`.
-- The site is Chinese at `/`, English / Japanese / Korean under `/en/` `/ja/` `/ko/`; every `{{t.key}}` comes from `site/i18n/<lang>.json`. `start.html` is the setup page (`download.html` the downloads); its `img/start/` screenshots come from the app in each language. `tools/`: test helpers. `Tests/LiveSubsTests`: unit tests for the pure parts.
+- `Sources/Cicada`: the app, one concern per file. Engines are UI-free (`ListenEngine`, `SpeakEngine`, `SpeakTest`, `Notes`, `Translator`, `Ling`, `VirtualMic`, `SessionStore`, `Updates`…); `AppModel` wires them and holds the debug commands. Settings keys: `AppSettings` in `Settings.swift`.
+- `Sources/CicadaIcon`: renders the icon set. `site/`: the website, built by `scripts/site.py`.
+- The site is Chinese at `/`, English / Japanese / Korean under `/en/` `/ja/` `/ko/`; every `{{t.key}}` comes from `site/i18n/<lang>.json`. `start.html` is the setup page (`download.html` the downloads); its `img/start/` screenshots come from the app in each language. `tools/`: test helpers. `Tests/CicadaTests`: unit tests for the pure parts.
## Commands
diff --git a/Package.swift b/Package.swift
index cdb9434..403f0d0 100644
--- a/Package.swift
+++ b/Package.swift
@@ -2,12 +2,12 @@
import PackageDescription
let package = Package(
- name: "LiveSubs",
+ name: "Cicada",
platforms: [.macOS("14.4")],
targets: [
- .executableTarget(name: "LiveSubs", path: "Sources/LiveSubs"),
- .executableTarget(name: "LiveSubsIcon", path: "Sources/LiveSubsIcon"),
- .testTarget(name: "LiveSubsTests", dependencies: ["LiveSubs"], path: "Tests/LiveSubsTests"),
+ .executableTarget(name: "Cicada", path: "Sources/Cicada"),
+ .executableTarget(name: "CicadaIcon", path: "Sources/CicadaIcon"),
+ .testTarget(name: "CicadaTests", dependencies: ["Cicada"], path: "Tests/CicadaTests"),
],
swiftLanguageModes: [.v5]
)
diff --git a/Sources/LiveSubs/AIProviders.swift b/Sources/Cicada/AIProviders.swift
similarity index 100%
rename from Sources/LiveSubs/AIProviders.swift
rename to Sources/Cicada/AIProviders.swift
diff --git a/Sources/LiveSubs/AISettings.swift b/Sources/Cicada/AISettings.swift
similarity index 100%
rename from Sources/LiveSubs/AISettings.swift
rename to Sources/Cicada/AISettings.swift
diff --git a/Sources/LiveSubs/AboutPanel.swift b/Sources/Cicada/AboutPanel.swift
similarity index 100%
rename from Sources/LiveSubs/AboutPanel.swift
rename to Sources/Cicada/AboutPanel.swift
diff --git a/Sources/LiveSubs/AppMenu.swift b/Sources/Cicada/AppMenu.swift
similarity index 100%
rename from Sources/LiveSubs/AppMenu.swift
rename to Sources/Cicada/AppMenu.swift
diff --git a/Sources/LiveSubs/AppModel.swift b/Sources/Cicada/AppModel.swift
similarity index 99%
rename from Sources/LiveSubs/AppModel.swift
rename to Sources/Cicada/AppModel.swift
index 0eda9d1..54868b3 100644
--- a/Sources/LiveSubs/AppModel.swift
+++ b/Sources/Cicada/AppModel.swift
@@ -1911,7 +1911,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate, UNUs
}
@main
-struct LiveSubsMain {
+struct CicadaMain {
static func main() {
let args = CommandLine.arguments
if let i = args.firstIndex(of: "--render-dmg-background"), args.count > i + 1 {
diff --git a/Sources/LiveSubs/AudioFiles.swift b/Sources/Cicada/AudioFiles.swift
similarity index 100%
rename from Sources/LiveSubs/AudioFiles.swift
rename to Sources/Cicada/AudioFiles.swift
diff --git a/Sources/LiveSubs/AudioRouter.swift b/Sources/Cicada/AudioRouter.swift
similarity index 100%
rename from Sources/LiveSubs/AudioRouter.swift
rename to Sources/Cicada/AudioRouter.swift
diff --git a/Sources/LiveSubs/Compat.swift b/Sources/Cicada/Compat.swift
similarity index 100%
rename from Sources/LiveSubs/Compat.swift
rename to Sources/Cicada/Compat.swift
diff --git a/Sources/LiveSubs/DMGBackground.swift b/Sources/Cicada/DMGBackground.swift
similarity index 100%
rename from Sources/LiveSubs/DMGBackground.swift
rename to Sources/Cicada/DMGBackground.swift
diff --git a/Sources/LiveSubs/DevBuild.swift b/Sources/Cicada/DevBuild.swift
similarity index 100%
rename from Sources/LiveSubs/DevBuild.swift
rename to Sources/Cicada/DevBuild.swift
diff --git a/Sources/LiveSubs/Diagnostics.swift b/Sources/Cicada/Diagnostics.swift
similarity index 100%
rename from Sources/LiveSubs/Diagnostics.swift
rename to Sources/Cicada/Diagnostics.swift
diff --git a/Sources/LiveSubs/DiagnosticsView.swift b/Sources/Cicada/DiagnosticsView.swift
similarity index 100%
rename from Sources/LiveSubs/DiagnosticsView.swift
rename to Sources/Cicada/DiagnosticsView.swift
diff --git a/Sources/LiveSubs/FileImport.swift b/Sources/Cicada/FileImport.swift
similarity index 100%
rename from Sources/LiveSubs/FileImport.swift
rename to Sources/Cicada/FileImport.swift
diff --git a/Sources/LiveSubs/HeardText.swift b/Sources/Cicada/HeardText.swift
similarity index 100%
rename from Sources/LiveSubs/HeardText.swift
rename to Sources/Cicada/HeardText.swift
diff --git a/Sources/LiveSubs/ImportViews.swift b/Sources/Cicada/ImportViews.swift
similarity index 100%
rename from Sources/LiveSubs/ImportViews.swift
rename to Sources/Cicada/ImportViews.swift
diff --git a/Sources/LiveSubs/LanguageDetector.swift b/Sources/Cicada/LanguageDetector.swift
similarity index 100%
rename from Sources/LiveSubs/LanguageDetector.swift
rename to Sources/Cicada/LanguageDetector.swift
diff --git a/Sources/LiveSubs/LanguageSettings.swift b/Sources/Cicada/LanguageSettings.swift
similarity index 100%
rename from Sources/LiveSubs/LanguageSettings.swift
rename to Sources/Cicada/LanguageSettings.swift
diff --git a/Sources/LiveSubs/Languages.swift b/Sources/Cicada/Languages.swift
similarity index 100%
rename from Sources/LiveSubs/Languages.swift
rename to Sources/Cicada/Languages.swift
diff --git a/Sources/LiveSubs/Ling.swift b/Sources/Cicada/Ling.swift
similarity index 100%
rename from Sources/LiveSubs/Ling.swift
rename to Sources/Cicada/Ling.swift
diff --git a/Sources/LiveSubs/ListenEngine.swift b/Sources/Cicada/ListenEngine.swift
similarity index 100%
rename from Sources/LiveSubs/ListenEngine.swift
rename to Sources/Cicada/ListenEngine.swift
diff --git a/Sources/LiveSubs/ListenPill.swift b/Sources/Cicada/ListenPill.swift
similarity index 100%
rename from Sources/LiveSubs/ListenPill.swift
rename to Sources/Cicada/ListenPill.swift
diff --git a/Sources/LiveSubs/Localization.swift b/Sources/Cicada/Localization.swift
similarity index 100%
rename from Sources/LiveSubs/Localization.swift
rename to Sources/Cicada/Localization.swift
diff --git a/Sources/LiveSubs/LoginItem.swift b/Sources/Cicada/LoginItem.swift
similarity index 100%
rename from Sources/LiveSubs/LoginItem.swift
rename to Sources/Cicada/LoginItem.swift
diff --git a/Sources/LiveSubs/MeetingEnd.swift b/Sources/Cicada/MeetingEnd.swift
similarity index 100%
rename from Sources/LiveSubs/MeetingEnd.swift
rename to Sources/Cicada/MeetingEnd.swift
diff --git a/Sources/LiveSubs/MicUsers.swift b/Sources/Cicada/MicUsers.swift
similarity index 100%
rename from Sources/LiveSubs/MicUsers.swift
rename to Sources/Cicada/MicUsers.swift
diff --git a/Sources/LiveSubs/MicUsersView.swift b/Sources/Cicada/MicUsersView.swift
similarity index 100%
rename from Sources/LiveSubs/MicUsersView.swift
rename to Sources/Cicada/MicUsersView.swift
diff --git a/Sources/LiveSubs/ModelProblem.swift b/Sources/Cicada/ModelProblem.swift
similarity index 100%
rename from Sources/LiveSubs/ModelProblem.swift
rename to Sources/Cicada/ModelProblem.swift
diff --git a/Sources/LiveSubs/Notes.swift b/Sources/Cicada/Notes.swift
similarity index 100%
rename from Sources/LiveSubs/Notes.swift
rename to Sources/Cicada/Notes.swift
diff --git a/Sources/LiveSubs/NotesViews.swift b/Sources/Cicada/NotesViews.swift
similarity index 100%
rename from Sources/LiveSubs/NotesViews.swift
rename to Sources/Cicada/NotesViews.swift
diff --git a/Sources/LiveSubs/NotesWindow.swift b/Sources/Cicada/NotesWindow.swift
similarity index 100%
rename from Sources/LiveSubs/NotesWindow.swift
rename to Sources/Cicada/NotesWindow.swift
diff --git a/Sources/LiveSubs/Onboarding.swift b/Sources/Cicada/Onboarding.swift
similarity index 99%
rename from Sources/LiveSubs/Onboarding.swift
rename to Sources/Cicada/Onboarding.swift
index f83096a..bc8d84a 100644
--- a/Sources/LiveSubs/Onboarding.swift
+++ b/Sources/Cicada/Onboarding.swift
@@ -5,7 +5,7 @@ import SwiftUI
// MARK: - Brand mark (logo B: a cicada's eyes and wings peeking over a white subtitle card)
/// The logo in its 100-unit design space, y down (same geometry as site/icon.svg and
-/// Sources/LiveSubsIcon; keep the three in step). Design: claude.ai/artifact/96R6Md276c3jAS4Mk4Ustn
+/// Sources/CicadaIcon; keep the three in step). Design: claude.ai/artifact/96R6Md276c3jAS4Mk4Ustn
enum CicadaLogo {
static let orange = rgb(0xE8552B)
static let ink = rgb(0x15171C)
diff --git a/Sources/LiveSubs/OnboardingKey.swift b/Sources/Cicada/OnboardingKey.swift
similarity index 100%
rename from Sources/LiveSubs/OnboardingKey.swift
rename to Sources/Cicada/OnboardingKey.swift
diff --git a/Sources/LiveSubs/Overlay.swift b/Sources/Cicada/Overlay.swift
similarity index 100%
rename from Sources/LiveSubs/Overlay.swift
rename to Sources/Cicada/Overlay.swift
diff --git a/Sources/LiveSubs/Recognition.swift b/Sources/Cicada/Recognition.swift
similarity index 100%
rename from Sources/LiveSubs/Recognition.swift
rename to Sources/Cicada/Recognition.swift
diff --git a/Sources/LiveSubs/RecordList.swift b/Sources/Cicada/RecordList.swift
similarity index 100%
rename from Sources/LiveSubs/RecordList.swift
rename to Sources/Cicada/RecordList.swift
diff --git a/Sources/LiveSubs/RoomMic.swift b/Sources/Cicada/RoomMic.swift
similarity index 100%
rename from Sources/LiveSubs/RoomMic.swift
rename to Sources/Cicada/RoomMic.swift
diff --git a/Sources/LiveSubs/SessionStore.swift b/Sources/Cicada/SessionStore.swift
similarity index 100%
rename from Sources/LiveSubs/SessionStore.swift
rename to Sources/Cicada/SessionStore.swift
diff --git a/Sources/LiveSubs/Settings.swift b/Sources/Cicada/Settings.swift
similarity index 98%
rename from Sources/LiveSubs/Settings.swift
rename to Sources/Cicada/Settings.swift
index 105fd76..b15b854 100644
--- a/Sources/LiveSubs/Settings.swift
+++ b/Sources/Cicada/Settings.swift
@@ -200,7 +200,7 @@ final class AppSettings: ObservableObject {
// Anyone who had it on before this question existed already knows.
speakConfirmed = defaults.object(forKey: "speakConfirmed") as? Bool ?? defaults.bool(forKey: "speakEnabled")
speakFrom = defaults.string(forKey: "speakFrom")
- ?? speakLocale(forLanguage: LiveSubs.myLanguage(systemLanguages: Locale.preferredLanguages))
+ ?? speakLocale(forLanguage: Cicada.myLanguage(systemLanguages: Locale.preferredLanguages))
speakTo = defaults.string(forKey: "speakTo") ?? "room"
speakOutput = defaults.string(forKey: "speakOutput") ?? ""
autoSystemMic = defaults.object(forKey: "autoSystemMic") as? Bool ?? true
@@ -289,13 +289,13 @@ final class AppSettings: ObservableObject {
/// The reader's own language: the translate-to choice, or with "follow system" the one
/// `myLanguage(systemLanguages:)` picks. Notes in 我的语言 use it too.
var myLanguage: String {
- target == "system" ? LiveSubs.myLanguage(systemLanguages: Locale.preferredLanguages) : target
+ target == "system" ? Cicada.myLanguage(systemLanguages: Locale.preferredLanguages) : target
}
/// "简体中文 / English": my language, then what it translates into when they speak mine.
func systemTargetDescription() -> String {
let prefs = Locale.preferredLanguages
- let mine = LiveSubs.myLanguage(systemLanguages: prefs)
+ let mine = Cicada.myLanguage(systemLanguages: prefs)
return [mine, followSystemTarget(source: mine, systemLanguages: prefs)].map(targetName).joined(separator: " / ")
}
diff --git a/Sources/LiveSubs/SettingsWindow.swift b/Sources/Cicada/SettingsWindow.swift
similarity index 100%
rename from Sources/LiveSubs/SettingsWindow.swift
rename to Sources/Cicada/SettingsWindow.swift
diff --git a/Sources/LiveSubs/Shortcuts.swift b/Sources/Cicada/Shortcuts.swift
similarity index 100%
rename from Sources/LiveSubs/Shortcuts.swift
rename to Sources/Cicada/Shortcuts.swift
diff --git a/Sources/LiveSubs/SpeakEngine.swift b/Sources/Cicada/SpeakEngine.swift
similarity index 100%
rename from Sources/LiveSubs/SpeakEngine.swift
rename to Sources/Cicada/SpeakEngine.swift
diff --git a/Sources/LiveSubs/SpeakTest.swift b/Sources/Cicada/SpeakTest.swift
similarity index 100%
rename from Sources/LiveSubs/SpeakTest.swift
rename to Sources/Cicada/SpeakTest.swift
diff --git a/Sources/LiveSubs/SpeakTestView.swift b/Sources/Cicada/SpeakTestView.swift
similarity index 100%
rename from Sources/LiveSubs/SpeakTestView.swift
rename to Sources/Cicada/SpeakTestView.swift
diff --git a/Sources/LiveSubs/SpeakerID.swift b/Sources/Cicada/SpeakerID.swift
similarity index 100%
rename from Sources/LiveSubs/SpeakerID.swift
rename to Sources/Cicada/SpeakerID.swift
diff --git a/Sources/LiveSubs/SpeakerViews.swift b/Sources/Cicada/SpeakerViews.swift
similarity index 100%
rename from Sources/LiveSubs/SpeakerViews.swift
rename to Sources/Cicada/SpeakerViews.swift
diff --git a/Sources/LiveSubs/SystemAudioTap.swift b/Sources/Cicada/SystemAudioTap.swift
similarity index 100%
rename from Sources/LiveSubs/SystemAudioTap.swift
rename to Sources/Cicada/SystemAudioTap.swift
diff --git a/Sources/LiveSubs/SystemMic.swift b/Sources/Cicada/SystemMic.swift
similarity index 100%
rename from Sources/LiveSubs/SystemMic.swift
rename to Sources/Cicada/SystemMic.swift
diff --git a/Sources/LiveSubs/Translator.swift b/Sources/Cicada/Translator.swift
similarity index 100%
rename from Sources/LiveSubs/Translator.swift
rename to Sources/Cicada/Translator.swift
diff --git a/Sources/LiveSubs/UpdateChecker.swift b/Sources/Cicada/UpdateChecker.swift
similarity index 100%
rename from Sources/LiveSubs/UpdateChecker.swift
rename to Sources/Cicada/UpdateChecker.swift
diff --git a/Sources/LiveSubs/UpdateViews.swift b/Sources/Cicada/UpdateViews.swift
similarity index 100%
rename from Sources/LiveSubs/UpdateViews.swift
rename to Sources/Cicada/UpdateViews.swift
diff --git a/Sources/LiveSubs/Updater.swift b/Sources/Cicada/Updater.swift
similarity index 100%
rename from Sources/LiveSubs/Updater.swift
rename to Sources/Cicada/Updater.swift
diff --git a/Sources/LiveSubs/Updates.swift b/Sources/Cicada/Updates.swift
similarity index 100%
rename from Sources/LiveSubs/Updates.swift
rename to Sources/Cicada/Updates.swift
diff --git a/Sources/LiveSubs/Views.swift b/Sources/Cicada/Views.swift
similarity index 100%
rename from Sources/LiveSubs/Views.swift
rename to Sources/Cicada/Views.swift
diff --git a/Sources/LiveSubs/VirtualMic.swift b/Sources/Cicada/VirtualMic.swift
similarity index 100%
rename from Sources/LiveSubs/VirtualMic.swift
rename to Sources/Cicada/VirtualMic.swift
diff --git a/Sources/LiveSubs/VoicePicker.swift b/Sources/Cicada/VoicePicker.swift
similarity index 100%
rename from Sources/LiveSubs/VoicePicker.swift
rename to Sources/Cicada/VoicePicker.swift
diff --git a/Sources/LiveSubs/Voices.swift b/Sources/Cicada/Voices.swift
similarity index 100%
rename from Sources/LiveSubs/Voices.swift
rename to Sources/Cicada/Voices.swift
diff --git a/Sources/LiveSubsIcon/main.swift b/Sources/CicadaIcon/main.swift
similarity index 97%
rename from Sources/LiveSubsIcon/main.swift
rename to Sources/CicadaIcon/main.swift
index 74d4deb..6ef246c 100644
--- a/Sources/LiveSubsIcon/main.swift
+++ b/Sources/CicadaIcon/main.swift
@@ -1,11 +1,11 @@
// Renders the app icon (logo B: a cicada's eyes and wings peeking over a white subtitle card, on orange)
-// into an .iconset. `LiveSubsIcon [--dev] <out.iconset>`; --dev adds a "DEV" band.
+// into an .iconset. `CicadaIcon [--dev] <out.iconset>`; --dev adds a "DEV" band.
import AppKit
let orange = NSColor(srgbRed: 0.91, green: 0.33, blue: 0.17, alpha: 1) // #E8552B
let ink = NSColor(srgbRed: 0.082, green: 0.09, blue: 0.11, alpha: 1) // #15171C
-// A copy of CicadaLogo in Sources/LiveSubs/Onboarding.swift (this target can't import the app);
+// A copy of CicadaLogo in Sources/Cicada/Onboarding.swift (this target can't import the app);
// keep it, that file and site/icon.svg in step.
enum CicadaLogo {
static let orange = rgb(0xE8552B)
diff --git a/Tests/LiveSubsTests/AIProviderTests.swift b/Tests/CicadaTests/AIProviderTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/AIProviderTests.swift
rename to Tests/CicadaTests/AIProviderTests.swift
index d5724f3..e99d6dd 100644
--- a/Tests/LiveSubsTests/AIProviderTests.swift
+++ b/Tests/CicadaTests/AIProviderTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
struct AIProviderTests {
private func shaped(_ p: AIProvider) -> [String: Any] {
diff --git a/Tests/LiveSubsTests/DiagnosticsTests.swift b/Tests/CicadaTests/DiagnosticsTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/DiagnosticsTests.swift
rename to Tests/CicadaTests/DiagnosticsTests.swift
index 7fab10a..7149d56 100644
--- a/Tests/LiveSubsTests/DiagnosticsTests.swift
+++ b/Tests/CicadaTests/DiagnosticsTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
/// The diagnostics list: requests grouped by use, service and model; speak-back to the first sound;
/// partial translations counted in memory.
diff --git a/Tests/LiveSubsTests/ExportTests.swift b/Tests/CicadaTests/ExportTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/ExportTests.swift
rename to Tests/CicadaTests/ExportTests.swift
index 8e610f9..771cd55 100644
--- a/Tests/LiveSubsTests/ExportTests.swift
+++ b/Tests/CicadaTests/ExportTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct ExportTests {
private func line(_ id: String, _ t: Double, _ speaker: String, _ src: String, _ dst: String?) -> TranscriptLine {
diff --git a/Tests/LiveSubsTests/HeardTextTests.swift b/Tests/CicadaTests/HeardTextTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/HeardTextTests.swift
rename to Tests/CicadaTests/HeardTextTests.swift
index d74c950..1e80223 100644
--- a/Tests/LiveSubsTests/HeardTextTests.swift
+++ b/Tests/CicadaTests/HeardTextTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
/// Lines from a recorded Bloomberg interview (session 20261103-000911).
@Suite struct HeardTextTests {
diff --git a/Tests/LiveSubsTests/ImportTests.swift b/Tests/CicadaTests/ImportTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/ImportTests.swift
rename to Tests/CicadaTests/ImportTests.swift
index 6e05221..b8b0cc3 100644
--- a/Tests/LiveSubsTests/ImportTests.swift
+++ b/Tests/CicadaTests/ImportTests.swift
@@ -1,7 +1,7 @@
import AVFoundation
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct ImportTests {
@Test func importableFiles() {
diff --git a/Tests/LiveSubsTests/LanguageTests.swift b/Tests/CicadaTests/LanguageTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/LanguageTests.swift
rename to Tests/CicadaTests/LanguageTests.swift
index 87231e0..aeafefe 100644
--- a/Tests/LiveSubsTests/LanguageTests.swift
+++ b/Tests/CicadaTests/LanguageTests.swift
@@ -1,5 +1,5 @@
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct LanguageTests {
@Test(arguments: [
diff --git a/Tests/LiveSubsTests/LingTests.swift b/Tests/CicadaTests/LingTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/LingTests.swift
rename to Tests/CicadaTests/LingTests.swift
index 429ce0c..afc272b 100644
--- a/Tests/LiveSubsTests/LingTests.swift
+++ b/Tests/CicadaTests/LingTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
/// Answers Ling requests from the test, and keeps what was asked. Requests reach a URLProtocol
/// with the body as a stream, not `httpBody`.
diff --git a/Tests/LiveSubsTests/MeetingEndTests.swift b/Tests/CicadaTests/MeetingEndTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/MeetingEndTests.swift
rename to Tests/CicadaTests/MeetingEndTests.swift
index 5ef366c..1474bb7 100644
--- a/Tests/LiveSubsTests/MeetingEndTests.swift
+++ b/Tests/CicadaTests/MeetingEndTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct MeetingEndTests {
let t0 = Date(timeIntervalSince1970: 1_000_000)
diff --git a/Tests/LiveSubsTests/MicUsersTests.swift b/Tests/CicadaTests/MicUsersTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/MicUsersTests.swift
rename to Tests/CicadaTests/MicUsersTests.swift
index 9cdf97e..d9381e1 100644
--- a/Tests/LiveSubsTests/MicUsersTests.swift
+++ b/Tests/CicadaTests/MicUsersTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct MicUsersTests {
let virtual: UInt32 = 87
diff --git a/Tests/LiveSubsTests/ModelProblemTests.swift b/Tests/CicadaTests/ModelProblemTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/ModelProblemTests.swift
rename to Tests/CicadaTests/ModelProblemTests.swift
index f4fc09d..311bbde 100644
--- a/Tests/LiveSubsTests/ModelProblemTests.swift
+++ b/Tests/CicadaTests/ModelProblemTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct ModelProblemTests {
private func cause(_ e: Error, online: Bool = true, free: Int64? = 50_000_000_000) -> ModelProblem.Cause {
diff --git a/Tests/LiveSubsTests/NotesWindowTests.swift b/Tests/CicadaTests/NotesWindowTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/NotesWindowTests.swift
rename to Tests/CicadaTests/NotesWindowTests.swift
index 988c796..474cb48 100644
--- a/Tests/LiveSubsTests/NotesWindowTests.swift
+++ b/Tests/CicadaTests/NotesWindowTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct NotesWindowTests {
private func line(_ id: String, _ t: Double, _ speaker: String = "them", _ src: String = "a line") -> TranscriptLine {
diff --git a/Tests/LiveSubsTests/RoomTests.swift b/Tests/CicadaTests/RoomTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/RoomTests.swift
rename to Tests/CicadaTests/RoomTests.swift
index 96ca372..494115f 100644
--- a/Tests/LiveSubsTests/RoomTests.swift
+++ b/Tests/CicadaTests/RoomTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct RoomTests {
typealias In = RoomMicPlan.Input
diff --git a/Tests/LiveSubsTests/SessionStoreTests.swift b/Tests/CicadaTests/SessionStoreTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/SessionStoreTests.swift
rename to Tests/CicadaTests/SessionStoreTests.swift
index 880699d..f23984b 100644
--- a/Tests/LiveSubsTests/SessionStoreTests.swift
+++ b/Tests/CicadaTests/SessionStoreTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
/// Ending a meeting: an empty one goes, one whose recording holds speech stays (issue #5).
@MainActor @Suite struct SessionStoreTests {
diff --git a/Tests/LiveSubsTests/SpeakScoreTests.swift b/Tests/CicadaTests/SpeakScoreTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/SpeakScoreTests.swift
rename to Tests/CicadaTests/SpeakScoreTests.swift
index 9b9791e..0806b38 100644
--- a/Tests/LiveSubsTests/SpeakScoreTests.swift
+++ b/Tests/CicadaTests/SpeakScoreTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct SpeakScoreTests {
@Test func tokensSplitCJKByCharacterAndDropPunctuation() {
diff --git a/Tests/LiveSubsTests/SpeakerTests.swift b/Tests/CicadaTests/SpeakerTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/SpeakerTests.swift
rename to Tests/CicadaTests/SpeakerTests.swift
index 93e8391..5666159 100644
--- a/Tests/LiveSubsTests/SpeakerTests.swift
+++ b/Tests/CicadaTests/SpeakerTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct SpeakerTests {
/// 1 s of two tones plus a deterministic ripple; reference values from
diff --git a/Tests/LiveSubsTests/SystemMicTests.swift b/Tests/CicadaTests/SystemMicTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/SystemMicTests.swift
rename to Tests/CicadaTests/SystemMicTests.swift
index b7f05d7..9badc42 100644
--- a/Tests/LiveSubsTests/SystemMicTests.swift
+++ b/Tests/CicadaTests/SystemMicTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct SystemMicTests {
let builtIn = SystemMicPlan.Device(uid: "BuiltInMicrophoneDevice", isVirtual: false)
diff --git a/Tests/LiveSubsTests/TranslatorTests.swift b/Tests/CicadaTests/TranslatorTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/TranslatorTests.swift
rename to Tests/CicadaTests/TranslatorTests.swift
index d98773e..a32d1e0 100644
--- a/Tests/LiveSubsTests/TranslatorTests.swift
+++ b/Tests/CicadaTests/TranslatorTests.swift
@@ -1,5 +1,5 @@
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct TranslatorTests {
@Test func remarkInsteadOfTranslationIsDropped() {
diff --git a/Tests/LiveSubsTests/UpdateTests.swift b/Tests/CicadaTests/UpdateTests.swift
similarity index 99%
rename from Tests/LiveSubsTests/UpdateTests.swift
rename to Tests/CicadaTests/UpdateTests.swift
index 390b43e..8234127 100644
--- a/Tests/LiveSubsTests/UpdateTests.swift
+++ b/Tests/CicadaTests/UpdateTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct UpdateTests {
@Test func versionsCompareNumerically() {
diff --git a/Tests/LiveSubsTests/VirtualMicTests.swift b/Tests/CicadaTests/VirtualMicTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/VirtualMicTests.swift
rename to Tests/CicadaTests/VirtualMicTests.swift
index 253a927..63daaac 100644
--- a/Tests/LiveSubsTests/VirtualMicTests.swift
+++ b/Tests/CicadaTests/VirtualMicTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
/// Serves a package that is not BlackHole.
final class FakePackage: URLProtocol, @unchecked Sendable {
diff --git a/Tests/LiveSubsTests/VoiceReferenceTests.swift b/Tests/CicadaTests/VoiceReferenceTests.swift
similarity index 98%
rename from Tests/LiveSubsTests/VoiceReferenceTests.swift
rename to Tests/CicadaTests/VoiceReferenceTests.swift
index 1fc6496..82a19a7 100644
--- a/Tests/LiveSubsTests/VoiceReferenceTests.swift
+++ b/Tests/CicadaTests/VoiceReferenceTests.swift
@@ -1,6 +1,6 @@
import Foundation
import Testing
-@testable import LiveSubs
+@testable import Cicada
@Suite struct VoiceReferenceTests {
/// `seconds` of silence, then `speech` seconds of a 200 Hz tone, then silence.
diff --git a/ios/Sources/Cicada/DevBuild.swift b/ios/Sources/Cicada/DevBuild.swift
index 3b9ae0f..742242d 100644
--- a/ios/Sources/Cicada/DevBuild.swift
+++ b/ios/Sources/Cicada/DevBuild.swift
@@ -1,6 +1,6 @@
import Foundation
-/// The iOS counterpart of the Mac's `DevBuild` and `debugLog` (`Sources/LiveSubs/DevBuild.swift`,
+/// The iOS counterpart of the Mac's `DevBuild` and `debugLog` (`Sources/Cicada/DevBuild.swift`,
/// `Settings.swift`): the shared sources call them by the same names. No /tmp on iOS, so the log
/// lives in the app container, where `xcrun simctl get_app_container booted <id> data` finds it.
enum DevBuild {
diff --git a/ios/scripts/build.sh b/ios/scripts/build.sh
index c98dc9c..f9f7660 100755
--- a/ios/scripts/build.sh
+++ b/ios/scripts/build.sh
@@ -32,10 +32,10 @@ cp -R "$APP/zh-Hans.lproj" "$APP/zh-Hant.lproj"
cp Resources/sample/sample.m4a "$APP/"
# 说话人识别's voiceprint model, compiled on first use as on the Mac (SpeakerID.swift).
cp -R Resources/models/SpeakerEmbedding.mlpackage "$APP/"
-# The logo on the 听会议室 card: the Mac's own icon renderer (Sources/LiveSubsIcon), not a fourth
+# The logo on the 听会议室 card: the Mac's own icon renderer (Sources/CicadaIcon), not a fourth
# copy of the geometry. It is a host tool, built once.
-ICON_TOOL=.build/release/LiveSubsIcon
-[[ -x $ICON_TOOL ]] || swift build -c release --product LiveSubsIcon >/dev/null
+ICON_TOOL=.build/release/CicadaIcon
+[[ -x $ICON_TOOL ]] || swift build -c release --product CicadaIcon >/dev/null
ICONS=$(mktemp -d)
"$ICON_TOOL" "$ICONS/logo.iconset" >/dev/null
cp "$ICONS/logo.iconset/[email protected]" "$APP/logo.png"
diff --git a/ios/scripts/host-recognizer.sh b/ios/scripts/host-recognizer.sh
index 1232757..dafd023 100755
--- a/ios/scripts/host-recognizer.sh
+++ b/ios/scripts/host-recognizer.sh
@@ -7,7 +7,7 @@ cd "$(dirname "$0")/../.."
OUT=ios/build/host-recognizer
mkdir -p ios/build
xcrun --sdk macosx swiftc -O -swift-version 5 -parse-as-library -target arm64-apple-macos26.0 \
- Sources/LiveSubs/Recognition.swift Sources/LiveSubs/Languages.swift Sources/LiveSubs/AudioFiles.swift \
+ Sources/Cicada/Recognition.swift Sources/Cicada/Languages.swift Sources/Cicada/AudioFiles.swift \
ios/tools/host-recognizer/main.swift -o "$OUT"
# Simulator UDIDs: the booted ones, or the named devices.
if [[ $# -eq 0 ]]; then
diff --git a/ios/shared-sources.txt b/ios/shared-sources.txt
index c6eba11..ab0b151 100644
--- a/ios/shared-sources.txt
+++ b/ios/shared-sources.txt
@@ -1,18 +1,18 @@
# Mac sources compiled into the iOS app as they are (one module, so no `public`).
# Keep these free of AppKit and of Mac-only APIs. Guard what needs AppKit with #if os(macOS), and what
# needs the rest of the Mac app with #if !CICADA_IOS (the iOS build sets it). ios/scripts/typecheck.sh checks.
-Sources/LiveSubs/Ling.swift
-Sources/LiveSubs/AIProviders.swift
-Sources/LiveSubs/Notes.swift
-Sources/LiveSubs/HeardText.swift
-Sources/LiveSubs/MeetingEnd.swift
-Sources/LiveSubs/Localization.swift
-Sources/LiveSubs/Voices.swift
-Sources/LiveSubs/SessionStore.swift
-Sources/LiveSubs/SpeakerID.swift
-Sources/LiveSubs/AudioFiles.swift
-Sources/LiveSubs/Translator.swift
-Sources/LiveSubs/Diagnostics.swift
-Sources/LiveSubs/RecordList.swift
-Sources/LiveSubs/Languages.swift
-Sources/LiveSubs/Recognition.swift
+Sources/Cicada/Ling.swift
+Sources/Cicada/AIProviders.swift
+Sources/Cicada/Notes.swift
+Sources/Cicada/HeardText.swift
+Sources/Cicada/MeetingEnd.swift
+Sources/Cicada/Localization.swift
+Sources/Cicada/Voices.swift
+Sources/Cicada/SessionStore.swift
+Sources/Cicada/SpeakerID.swift
+Sources/Cicada/AudioFiles.swift
+Sources/Cicada/Translator.swift
+Sources/Cicada/Diagnostics.swift
+Sources/Cicada/RecordList.swift
+Sources/Cicada/Languages.swift
+Sources/Cicada/Recognition.swift
diff --git a/scripts/build.sh b/scripts/build.sh
index acb46c9..3b021c6 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -6,8 +6,8 @@
set -euo pipefail
cd "$(dirname "$0")/.."
-swift build -c release --product LiveSubs
-swift build -c release --product LiveSubsIcon
+swift build -c release --product Cicada
+swift build -c release --product CicadaIcon
BIN=$(swift build -c release --show-bin-path)
APP=build/Cicada.app
@@ -15,7 +15,7 @@ ICONSET=build/AppIcon.iconset
rm -rf "$APP" "$ICONSET" build/LiveSubs.app
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
-cp "$BIN/LiveSubs" "$APP/Contents/MacOS/Cicada"
+cp "$BIN/Cicada" "$APP/Contents/MacOS/Cicada"
cp Resources/Info.plist "$APP/Contents/Info.plist"
cp Resources/sample/sample.m4a "$APP/Contents/Resources/"
# The experimental voiceprint model; the app compiles it on first use (no coremlcompiler in the CLT).
@@ -43,7 +43,7 @@ fi
ICON_FLAGS=()
[[ "${RELEASE:-}" == 1 ]] || ICON_FLAGS=(--dev)
-"$BIN/LiveSubsIcon" ${ICON_FLAGS[@]+"${ICON_FLAGS[@]}"} "$ICONSET"
+"$BIN/CicadaIcon" ${ICON_FLAGS[@]+"${ICON_FLAGS[@]}"} "$ICONSET"
iconutil -c icns "$ICONSET" -o "$APP/Contents/Resources/AppIcon.icns"
# A fixed designated requirement (the bundle id alone), so rebuilding keeps the system-audio and
diff --git a/scripts/dmg-template.sh b/scripts/dmg-template.sh
index f5e05e1..aa1dfb3 100755
--- a/scripts/dmg-template.sh
+++ b/scripts/dmg-template.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Regenerates Resources/dmg/DS_Store, the installer window layout, by letting Finder lay out a
# scratch volume. Run it on a Mac after changing the window size, icon positions or background;
-# keep them in step with Sources/LiveSubs/DMGBackground.swift. The first run asks to let the
+# keep them in step with Sources/Cicada/DMGBackground.swift. The first run asks to let the
# terminal control Finder (System Settings › Privacy & Security › Automation).
set -euo pipefail
cd "$(dirname "$0")/.."
diff --git a/scripts/strings.py b/scripts/strings.py
index 8276444..197dbf1 100755
--- a/scripts/strings.py
+++ b/scripts/strings.py
@@ -27,7 +27,7 @@ def specs(s):
def code_keys():
out = tempfile.mkdtemp()
- subprocess.run(["swift", "build", "--product", "LiveSubs", "-Xswiftc", "-emit-localized-strings",
+ subprocess.run(["swift", "build", "--product", "Cicada", "-Xswiftc", "-emit-localized-strings",
"-Xswiftc", "-emit-localized-strings-path", "-Xswiftc", out],
cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
# The iOS app's text shares the same tables (ios/AGENTS.md); it needs Xcode's iOS SDK.