Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Notetaker: record a call, transcript person by person, summary and to-dos

Claudeb7c25d2baa5a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 496098ae..ef8263a4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,6 +39,9 @@ jobs:
- name: Test Flow text (snippets, dictionary, numbers)
run: bash scripts/test-flow-text.sh
+ - name: Test Notetaker transcript (speakers, echo, summary, Markdown)
+ run: bash scripts/test-notetaker.sh
+
- name: Desktop Mochi and gaze tests
run: bash scripts/test-desktop-mochi.sh
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 00b82a77..798b480f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,9 @@
## Unreleased
- **Flow dictation** *(macOS, GitHub build)* — hold a key anywhere on the Mac (right ⌥ by default, or right ⌘, right ⌃ or fn), speak, let go: your words are pasted where you type, like Wispr Flow. A small pill rests at the bottom of the screen while Flow dictation is on; when you speak it opens into Mochi and nine dots rising and falling with the graves and the aigus of your voice. Two quick taps keep it listening hands-free until the next tap; Esc cancels. Speech is recognised by the Mac (on-device when it can), and the clipboard gets back what it held after the paste. Off by default — Settings → Voice; it needs the Accessibility permission to see the key and paste
+- **Coucou Flow** *(macOS, GitHub build)* — a window for the dictation, from the menu bar (Coucou Flow…) or Settings → Voice. **Dictation**: today's dictations with search and copy, total words, words per minute and days in a row. **Statistics**: words, time saved, speed, words per day and the apps you dictate in. **Dictionary**: names Coucou always spells right, and replacements (« cloud code » → « Claude Code »). **Snippets**: say a short phrase, the whole text is pasted. **Styles**: an optional clean-up by Claude with your own key (no « euh », no repeats, corrections kept), as said, natural or polished, per app. ⌃⌘V pastes the last dictation again, ⌘V follows your keyboard layout and clipboard managers leave the dictation out
+- **Parakeet** *(macOS, GitHub build)* — dictation can run on NVIDIA's Parakeet through [FluidAudio](https://github.com/FluidInference/FluidAudio), on the Mac's Neural Engine: more accurate, offline, 25 languages. Nothing is downloaded until you click Download in Coucou Flow → Settings (about 650 MB, once); until then the Mac's own recognition is used. Apple silicon only
+- **Notetaker** *(macOS, GitHub build)* — click Record a call: Coucou records your microphone and what the Mac plays (no bot joins the call), shows the words live, then writes the transcript person by person — you, Person 2, Person 3… which you can rename — with a summary, key points and the to-dos, by Claude with your key or by Apple Intelligence. Copy it as Markdown or export it. A red pill at the bottom of the screen shows the time and stops the recording. Notes stay on your Mac and the audio is deleted once the transcript is written; tell the people in the call that you record
## Android 0.2.0 — October 13, 2026
diff --git a/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj b/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
index 07870deb..bea1fb68 100644
--- a/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
+++ b/NotchBuddy/NotchBuddy.xcodeproj/project.pbxproj
@@ -47,6 +47,9 @@
1C2BB61FA83015C42B321E0E /* PillColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37564F5F041B38C976DF3DEF /* PillColors.swift */; };
1D23613B270FE8B11C5E27A7 /* IslandDisplayChoice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A09E73F1E58019EF6EA2A62 /* IslandDisplayChoice.swift */; };
1D4CE0CCD2B5A0FFE50C7F06 /* TerminalTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */; };
+ C25D058C2C5B4B7A93238F3A /* NoteTaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91A6EB483F6EC87C05CC6C69 /* NoteTaker.swift */; };
+ AA4B80F3F49E23FED830EC7D /* NoteAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2BE0A486C4ED7BEDDC96548 /* NoteAudio.swift */; };
+ A52241F5F37D87CB9BB8E4E0 /* NoteModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66BB44A1EDFFD50C0688BD09 /* NoteModels.swift */; };
43346F544B8BF45F651C87B4 /* ParakeetEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9007267453D60200C2CB8F4 /* ParakeetEngine.swift */; };
8090516AA01E97B3F0D16261 /* FlowHubNotes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B2FE56D7F32FCF7453CFB1B /* FlowHubNotes.swift */; };
7FBFCF6C9075D9EFD351961B /* FlowHubSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19503827102C75174006BF9E /* FlowHubSettings.swift */; };
@@ -143,6 +146,9 @@
65CB53E20B2289CA3AC3E8FE /* TurnSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A1C4152EBDBD7C24CABFFD7 /* TurnSnapshot.swift */; };
6613EB914852E6EEB1FF37BF /* IntentParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F39753CFF90B494D449CCD95 /* IntentParser.swift */; };
6726F74966EDE7F82BFE89B2 /* TerminalTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */; };
+ BAFE1A37B0ACEFDCE29E2B1E /* NoteTaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91A6EB483F6EC87C05CC6C69 /* NoteTaker.swift */; };
+ B42017CDFF5A9ED72E2FF99B /* NoteAudio.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2BE0A486C4ED7BEDDC96548 /* NoteAudio.swift */; };
+ ACC4A6ED5F5915F5B0DE9DD6 /* NoteModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66BB44A1EDFFD50C0688BD09 /* NoteModels.swift */; };
B63AC65188449D52DB5DDC29 /* ParakeetEngine.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9007267453D60200C2CB8F4 /* ParakeetEngine.swift */; };
C500511EDFF4761BDA4488CE /* FlowHubNotes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B2FE56D7F32FCF7453CFB1B /* FlowHubNotes.swift */; };
A5260F0D566968C8A2FE43BD /* FlowHubSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19503827102C75174006BF9E /* FlowHubSettings.swift */; };
@@ -493,6 +499,9 @@
871CA2BADC67D97C97C7009D /* error.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = error.wav; sourceTree = "<group>"; };
8790ACE9F73BD74640A0F20C /* LocalChat.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalChat.swift; sourceTree = "<group>"; };
87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalTarget.swift; sourceTree = "<group>"; };
+ 91A6EB483F6EC87C05CC6C69 /* NoteTaker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteTaker.swift; sourceTree = "<group>"; };
+ D2BE0A486C4ED7BEDDC96548 /* NoteAudio.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteAudio.swift; sourceTree = "<group>"; };
+ 66BB44A1EDFFD50C0688BD09 /* NoteModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteModels.swift; sourceTree = "<group>"; };
C9007267453D60200C2CB8F4 /* ParakeetEngine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParakeetEngine.swift; sourceTree = "<group>"; };
3B2FE56D7F32FCF7453CFB1B /* FlowHubNotes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlowHubNotes.swift; sourceTree = "<group>"; };
19503827102C75174006BF9E /* FlowHubSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlowHubSettings.swift; sourceTree = "<group>"; };
@@ -675,6 +684,9 @@
914A792788D403F836BEB570 /* SpotifyViews.swift */,
2EF78999D68D56ADE4CEFBE2 /* StripePoller.swift */,
87AF6F7A027AB1D46309DD49 /* TerminalTarget.swift */,
+ 91A6EB483F6EC87C05CC6C69 /* NoteTaker.swift */,
+ D2BE0A486C4ED7BEDDC96548 /* NoteAudio.swift */,
+ 66BB44A1EDFFD50C0688BD09 /* NoteModels.swift */,
C9007267453D60200C2CB8F4 /* ParakeetEngine.swift */,
3B2FE56D7F32FCF7453CFB1B /* FlowHubNotes.swift */,
19503827102C75174006BF9E /* FlowHubSettings.swift */,
@@ -1179,6 +1191,9 @@
1558BB00C530B721172F6E65 /* StripePoller.swift in Sources */,
9EA178EA395B116336C1FA10 /* TerminalTarget+AppKit.swift in Sources */,
1D4CE0CCD2B5A0FFE50C7F06 /* TerminalTarget.swift in Sources */,
+ C25D058C2C5B4B7A93238F3A /* NoteTaker.swift in Sources */,
+ AA4B80F3F49E23FED830EC7D /* NoteAudio.swift in Sources */,
+ A52241F5F37D87CB9BB8E4E0 /* NoteModels.swift in Sources */,
43346F544B8BF45F651C87B4 /* ParakeetEngine.swift in Sources */,
8090516AA01E97B3F0D16261 /* FlowHubNotes.swift in Sources */,
7FBFCF6C9075D9EFD351961B /* FlowHubSettings.swift in Sources */,
@@ -1396,6 +1411,9 @@
E4B9986674F4D425826F15A8 /* StripePoller.swift in Sources */,
11F14DB97C93CF84DF9D5C43 /* TerminalTarget+AppKit.swift in Sources */,
6726F74966EDE7F82BFE89B2 /* TerminalTarget.swift in Sources */,
+ BAFE1A37B0ACEFDCE29E2B1E /* NoteTaker.swift in Sources */,
+ B42017CDFF5A9ED72E2FF99B /* NoteAudio.swift in Sources */,
+ ACC4A6ED5F5915F5B0DE9DD6 /* NoteModels.swift in Sources */,
B63AC65188449D52DB5DDC29 /* ParakeetEngine.swift in Sources */,
C500511EDFF4761BDA4488CE /* FlowHubNotes.swift in Sources */,
A5260F0D566968C8A2FE43BD /* FlowHubSettings.swift in Sources */,
diff --git a/NotchBuddy/Resources/Info.plist b/NotchBuddy/Resources/Info.plist
index 86e09565..137f0781 100644
--- a/NotchBuddy/Resources/Info.plist
+++ b/NotchBuddy/Resources/Info.plist
@@ -44,12 +44,14 @@
</dict>
<key>NSAppleEventsUsageDescription</key>
<string>Pour sauter au terminal, envoyer des mails et piloter Musique et Spotify.</string>
+ <key>NSAudioCaptureUsageDescription</key>
+ <string>Coucou records what your Mac plays only while you note a call, to write down what the other people say.</string>
<key>NSContactsUsageDescription</key>
<string>Coucou looks up an email address when you ask it, by voice, to prepare an email.</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSMicrophoneUsageDescription</key>
- <string>Coucou uses the microphone when you dictate a message in the chat.</string>
+ <string>Coucou uses the microphone when you dictate, and to note your calls when you ask it to.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Coucou turns your voice into the text of a chat message.</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstrings
index 592adf0f..9da80a82 100644
--- a/NotchBuddy/Resources/Localizable.xcstrings
+++ b/NotchBuddy/Resources/Localizable.xcstrings
@@ -5671,61 +5671,61 @@
"ar" : {
"stringUnit" : {
"state" : "translated",
- "value" : "يبقى السجل والإحصاءات على جهاز Mac هذا، في مجلد Coucou. ولا يُحفظ صوتك في ملف أبدًا."
+ "value" : "يبقى السجل والإحصاءات وملاحظاتك على جهاز Mac هذا، في مجلد Coucou. لا تُحفظ الإملاءات صوتيًا أبدًا، ويُحذف صوت المكالمة فور كتابة نصها."
}
},
"bn" : {
"stringUnit" : {
"state" : "translated",
- "value" : "ইতিহাস আর পরিসংখ্যান এই Mac-এ, Coucou-র ফোল্ডারে থাকে। আপনার কণ্ঠ কখনো ফাইলে সেভ হয় না।"
+ "value" : "ইতিহাস, পরিসংখ্যান আর আপনার নোট এই Mac-এ, Coucou-র ফোল্ডারে থাকে। ডিক্টেশন কখনো অডিও হিসেবে রাখা হয় না; কলের অডিও ট্রান্সক্রিপ্ট লেখা হলেই মুছে ফেলা হয়।"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
- "value" : "The history and the statistics stay on this Mac, in Coucou's folder. Your voice is never saved to a file."
+ "value" : "The history, the statistics and your notes stay on this Mac, in Coucou's folder. Dictations are never saved as audio; a call's audio is deleted as soon as its transcript is written."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "El historial y las estadísticas se quedan en este Mac, en la carpeta de Coucou. Tu voz nunca se guarda en un archivo."
+ "value" : "El historial, las estadísticas y tus notas se quedan en este Mac, en la carpeta de Coucou. Los dictados nunca se guardan como audio; el audio de una llamada se borra en cuanto se escribe su transcripción."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "L'historique et les statistiques restent sur ce Mac, dans le dossier de Coucou. Ta voix n'est jamais enregistrée dans un fichier."
+ "value" : "L'historique, les statistiques et tes notes restent sur ce Mac, dans le dossier de Coucou. Les dictées ne sont jamais gardées en audio ; l'audio d'un call est effacé dès que sa transcription est écrite."
}
},
"hi" : {
"stringUnit" : {
"state" : "translated",
- "value" : "इतिहास और आँकड़े इसी Mac पर, Coucou के फ़ोल्डर में रहते हैं। आपकी आवाज़ कभी फ़ाइल में सेव नहीं होती।"
+ "value" : "इतिहास, आँकड़े और आपके नोट्स इसी Mac पर, Coucou के फ़ोल्डर में रहते हैं। डिक्टेशन कभी ऑडियो के रूप में नहीं रखे जाते; कॉल का ऑडियो ट्रांसक्रिप्ट लिखते ही मिटा दिया जाता है।"
}
},
"id" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Riwayat dan statistik tetap di Mac ini, di folder Coucou. Suaramu tidak pernah disimpan ke file."
+ "value" : "Riwayat, statistik, dan catatanmu tetap di Mac ini, di folder Coucou. Dikte tidak pernah disimpan sebagai audio; audio panggilan dihapus begitu transkripnya selesai ditulis."
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
- "value" : "O histórico e as estatísticas ficam neste Mac, na pasta do Coucou. Sua voz nunca é salva em arquivo."
+ "value" : "O histórico, as estatísticas e suas notas ficam neste Mac, na pasta do Coucou. Os ditados nunca são guardados em áudio; o áudio de uma chamada é apagado assim que a transcrição é escrita."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "История и статистика хранятся на этом Mac, в папке Coucou. Ваш голос никогда не сохраняется в файл."
+ "value" : "История, статистика и заметки хранятся на этом Mac, в папке Coucou. Диктовки никогда не сохраняются как аудио; запись звонка удаляется, как только готова расшифровка."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "历史记录和统计保存在这台 Mac 上的 Coucou 文件夹中。你的声音从不保存为文件。"
+ "value" : "历史记录、统计和你的笔记都保存在这台 Mac 上的 Coucou 文件夹中。听写从不保存为音频;通话的音频在转写完成后立即删除。"
}
}
}
@@ -8525,6 +8525,2606 @@
}
}
},
+ "notes.copied" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تم النسخ"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "কপি হয়েছে"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copied"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiado"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copié"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कॉपी हुआ"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Disalin"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiado"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скопировано"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "已拷贝"
+ }
+ }
+ }
+ },
+ "notes.copy-markdown" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "نسخ بصيغة Markdown"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Markdown হিসেবে কপি"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copy as Markdown"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiar en Markdown"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copier en Markdown"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Markdown में कॉपी करें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Salin sebagai Markdown"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Copiar em Markdown"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скопировать в Markdown"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "拷贝为 Markdown"
+ }
+ }
+ }
+ },
+ "notes.default-title %@" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "مكالمة · %@"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "কল · %@"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Call · %@"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Llamada · %@"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Call · %@"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कॉल · %@"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Panggilan · %@"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Chamada · %@"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Звонок · %@"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "通话 · %@"
+ }
+ }
+ }
+ },
+ "notes.delete-confirm" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "هل تريد حذف هذه المكالمة وملاحظاتها؟"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "এই কল আর এর নোট মুছবেন?"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Delete this call and its notes?"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "¿Eliminar esta llamada y sus notas?"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Supprimer ce call et ses notes ?"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "यह कॉल और इसके नोट्स हटाएँ?"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hapus panggilan ini beserta catatannya?"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apagar esta chamada e as notas?"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Удалить этот звонок и его заметки?"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "删除这次通话及其笔记?"
+ }
+ }
+ }
+ },
+ "notes.empty" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ستظهر مكالماتك هنا. انقر على تسجيل مكالمة عند بدئها."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "আপনার কল এখানে দেখা যাবে। কল শুরু হলে কল রেকর্ড করুন-এ ক্লিক করুন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Your calls will show here. Click Record a call when one starts."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tus llamadas aparecerán aquí. Haz clic en Grabar una llamada cuando empiece una."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tes calls s'afficheront ici. Clique sur Enregistrer un call quand il commence."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "आपकी कॉल यहाँ दिखेंगी। कॉल शुरू होने पर कॉल रिकॉर्ड करें पर क्लिक करें।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Panggilanmu akan muncul di sini. Klik Rekam panggilan saat dimulai."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Suas chamadas aparecerão aqui. Clique em Gravar uma chamada quando ela começar."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Здесь появятся ваши звонки. Нажмите «Записать звонок», когда он начнётся."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "你的通话会显示在这里。通话开始时点按“录制通话”。"
+ }
+ }
+ }
+ },
+ "notes.engine" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الملخصات"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সারাংশ"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Summaries"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Resúmenes"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Résumés"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सारांश"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ringkasan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Resumos"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Краткие итоги"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "摘要"
+ }
+ }
+ }
+ },
+ "notes.engine-detail" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "مع Claude يُرسل النص المكتوب (وليس الصوت أبدًا) إلى Anthropic بمفتاحك من الإعدادات ← الدردشة. أما Apple Intelligence فيكتبه على جهاز Mac (macOS 26)."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude-এর সঙ্গে ট্রান্সক্রিপ্ট (কখনো অডিও নয়) সেটিংস → চ্যাট-এর কী দিয়ে Anthropic-এ যায়। Apple Intelligence এটি আপনার Mac-এ লেখে (macOS 26)।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "With Claude, the transcript (never the audio) goes to Anthropic with your key from Settings → Chat. Apple Intelligence writes it on your Mac (macOS 26)."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Con Claude, la transcripción (nunca el audio) va a Anthropic con tu clave de Ajustes → Chat. Apple Intelligence lo escribe en tu Mac (macOS 26)."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Avec Claude, la transcription (jamais l'audio) part chez Anthropic avec ta clé de Réglages → Chat. Apple Intelligence l'écrit sur ton Mac (macOS 26)."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude के साथ ट्रांसक्रिप्ट (ऑडियो कभी नहीं) सेटिंग्स → चैट वाली आपकी कुंजी से Anthropic को जाता है। Apple Intelligence इसे आपके Mac पर लिखता है (macOS 26)।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dengan Claude, transkrip (bukan audio) dikirim ke Anthropic dengan kuncimu dari Pengaturan → Obrolan. Apple Intelligence menulisnya di Mac-mu (macOS 26)."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Com o Claude, a transcrição (nunca o áudio) vai para a Anthropic com sua chave de Ajustes → Chat. A Apple Intelligence escreve no seu Mac (macOS 26)."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "С Claude расшифровка (но не аудио) уходит в Anthropic с вашим ключом из Настройки → Чат. Apple Intelligence пишет итог прямо на Mac (macOS 26)."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "使用 Claude 时,转写文字(绝不是音频)会用“设置”→“聊天”中的密钥发送给 Anthropic。Apple 智能则在你的 Mac 上生成(macOS 26)。"
+ }
+ }
+ }
+ },
+ "notes.engine.apple" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple Intelligence"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Apple 智能"
+ }
+ }
+ }
+ },
+ "notes.engine.claude" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (مفتاحك)"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (আপনার কী)"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (your key)"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (tu clave)"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (ta clé)"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (आपकी कुंजी)"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (kuncimu)"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (sua chave)"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude (ваш ключ)"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude(你的密钥)"
+ }
+ }
+ }
+ },
+ "notes.engine.off" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "بدون ملخص"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সারাংশ নয়"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No summary"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sin resumen"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pas de résumé"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "कोई सारांश नहीं"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tanpa ringkasan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sem resumo"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Без итога"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "不生成摘要"
+ }
+ }
+ }
+ },
+ "notes.error.mic" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لا يستطيع Coucou استخدام الميكروفون. اسمح به من إعدادات النظام ← الخصوصية والأمن ← الميكروفون."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou মাইক্রোফোন ব্যবহার করতে পারছে না। সিস্টেম সেটিংস → গোপনীয়তা ও নিরাপত্তা → মাইক্রোফোন-এ অনুমতি দিন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou can't use the microphone. Allow it in System Settings → Privacy & Security → Microphone."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou no puede usar el micrófono. Permítelo en Ajustes del Sistema → Privacidad y seguridad → Micrófono."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou ne peut pas utiliser le micro. Autorise-le dans Réglages Système → Confidentialité et sécurité → Micro."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou माइक्रोफ़ोन इस्तेमाल नहीं कर पा रहा। सिस्टम सेटिंग्स → गोपनीयता और सुरक्षा → माइक्रोफ़ोन में अनुमति दें।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou tidak bisa memakai mikrofon. Izinkan di Pengaturan Sistem → Privasi & Keamanan → Mikrofon."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Coucou não pode usar o microfone. Permita em Ajustes do Sistema → Privacidade e Segurança → Microfone."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou не может использовать микрофон. Разрешите его в Системных настройках → Конфиденциальность и безопасность → Микрофон."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou 无法使用麦克风。请在“系统设置”→“隐私与安全性”→“麦克风”中允许。"
+ }
+ }
+ }
+ },
+ "notes.error.models" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "نزّل النماذج أولًا من Coucou Flow ← الإعدادات."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "আগে Coucou Flow → সেটিংস-এ মডেল ডাউনলোড করুন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Download the models in Coucou Flow → Settings first."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Primero descarga los modelos en Coucou Flow → Ajustes."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Télécharge d'abord les modèles dans Coucou Flow → Réglages."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "पहले Coucou Flow → सेटिंग्स में मॉडल डाउनलोड करें।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unduh dulu modelnya di Coucou Flow → Pengaturan."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Primeiro baixe os modelos em Coucou Flow → Ajustes."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Сначала скачайте модели в Coucou Flow → Настройки."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "请先在 Coucou Flow →“设置”中下载模型。"
+ }
+ }
+ }
+ },
+ "notes.error.no-audio" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لم يعد تسجيل هذه المكالمة موجودًا."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "এই কলের রেকর্ডিং আর নেই।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "The recording of this call is gone."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "La grabación de esta llamada ya no existe."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "L'enregistrement de ce call n'existe plus."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "इस कॉल की रिकॉर्डिंग अब नहीं है।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Rekaman panggilan ini sudah tidak ada."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "A gravação desta chamada não existe mais."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Записи этого звонка больше нет."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "这次通话的录音已不存在。"
+ }
+ }
+ }
+ },
+ "notes.export" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تصدير بصيغة Markdown…"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Markdown হিসেবে এক্সপোর্ট…"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Export as Markdown…"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Exportar en Markdown…"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Exporter en Markdown…"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Markdown में एक्सपोर्ट करें…"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ekspor sebagai Markdown…"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Exportar em Markdown…"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Экспортировать в Markdown…"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "导出为 Markdown…"
+ }
+ }
+ }
+ },
+ "notes.failed" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تعذّرت كتابة النص."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ট্রান্সক্রিপ্ট লেখা যায়নি।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "The transcript could not be written."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No se pudo escribir la transcripción."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "La transcription n'a pas pu être écrite."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ट्रांसक्रिप्ट नहीं लिखा जा सका।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transkrip tidak dapat ditulis."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Não foi possível escrever a transcrição."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Не удалось составить расшифровку."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "无法生成转写。"
+ }
+ }
+ }
+ },
+ "notes.failed-short" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "فشل"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ব্যর্থ"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "failed"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "error"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "échec"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "विफल"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "gagal"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "falhou"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ошибка"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "失败"
+ }
+ }
+ }
+ },
+ "notes.key-points" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "النقاط الرئيسية"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "মূল বিষয়"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Key points"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Puntos clave"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Points clés"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "मुख्य बातें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Poin penting"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pontos-chave"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Главное"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "要点"
+ }
+ }
+ }
+ },
+ "notes.legal" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "يبقى كل شيء على جهاز Mac. أخبر من في المكالمة أنك تسجّل."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সবকিছু আপনার Mac-এ থাকে। কলের লোকদের জানান যে আপনি রেকর্ড করছেন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Everything stays on your Mac. Tell the people in the call that you are recording."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Todo se queda en tu Mac. Avisa a las personas de la llamada de que grabas."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tout reste sur ton Mac. Préviens les gens du call que tu enregistres."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सब कुछ आपके Mac पर रहता है। कॉल में लोगों को बताएँ कि आप रिकॉर्ड कर रहे हैं।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Semuanya tetap di Mac-mu. Beri tahu orang di panggilan bahwa kamu merekam."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tudo fica no seu Mac. Avise as pessoas da chamada que você está gravando."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Всё остаётся на Mac. Предупредите участников звонка, что ведёте запись."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "一切都留在你的 Mac 上。请告知通话中的人你正在录音。"
+ }
+ }
+ }
+ },
+ "notes.live" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "مباشر"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "লাইভ"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Live"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "En directo"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "En direct"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "लाइव"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Langsung"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ao vivo"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "В реальном времени"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "实时"
+ }
+ }
+ }
+ },
+ "notes.live-empty" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تظهر الكلمات هنا أثناء حديث الناس."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "লোকেরা কথা বলার সাথে সাথে শব্দ এখানে দেখা যায়।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "The words show up here as people speak."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Las palabras aparecen aquí mientras la gente habla."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Les mots s'affichent ici pendant que les gens parlent."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "लोगों के बोलते ही शब्द यहाँ दिखते हैं।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kata-kata muncul di sini saat orang berbicara."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "As palavras aparecem aqui enquanto as pessoas falam."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Слова появляются здесь, пока люди говорят."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "大家说话时,文字会显示在这里。"
+ }
+ }
+ }
+ },
+ "notes.me" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "أنا"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "আমি"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Me"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Yo"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Moi"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "मैं"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Saya"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Eu"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Я"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "我"
+ }
+ }
+ }
+ },
+ "notes.no-summary" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لا ملخص بعد."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "এখনো কোনো সারাংশ নেই।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No summary yet."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aún no hay resumen."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pas encore de résumé."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "अभी कोई सारांश नहीं।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Belum ada ringkasan."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ainda sem resumo."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Итога пока нет."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "还没有摘要。"
+ }
+ }
+ }
+ },
+ "notes.nothing-heard" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "لم يُسمع أحد في هذا التسجيل."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "এই রেকর্ডিংয়ে কাউকে শোনা যায়নি।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nobody was heard in this recording."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "No se oyó a nadie en esta grabación."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Personne n'a été entendu dans cet enregistrement."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "इस रिकॉर्डिंग में कोई सुनाई नहीं दिया।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tidak ada yang terdengar di rekaman ini."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ninguém foi ouvido nesta gravação."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "В этой записи никого не слышно."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "这段录音中没有听到任何人。"
+ }
+ }
+ }
+ },
+ "notes.others" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الآخرون"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "অন্যরা"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Others"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Los demás"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Les autres"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "बाकी लोग"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Yang lain"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Os outros"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Остальные"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "其他人"
+ }
+ }
+ }
+ },
+ "notes.person %lld" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الشخص %lld"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ব্যক্তি %lld"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Person %lld"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Persona %lld"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Personne %lld"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "व्यक्ति %lld"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Orang %lld"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pessoa %lld"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Участник %lld"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "说话人 %lld"
+ }
+ }
+ }
+ },
+ "notes.processing" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "يكتب Coucou النص شخصًا بشخص…"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou প্রতিজনের ট্রান্সক্রিপ্ট লিখছে…"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou is writing the transcript, person by person…"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou está escribiendo la transcripción, persona por persona…"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou écrit la transcription, personne par personne…"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou हर व्यक्ति के हिसाब से ट्रांसक्रिप्ट लिख रहा है…"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou sedang menulis transkrip, per orang…"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Coucou está escrevendo a transcrição, pessoa por pessoa…"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou составляет расшифровку по участникам…"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou 正在按人逐句写转写…"
+ }
+ }
+ }
+ },
+ "notes.processing-short" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "قيد الكتابة…"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "লেখা হচ্ছে…"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "writing…"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "procesando…"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "en cours…"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "लिखा जा रहा है…"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "diproses…"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "processando…"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "обработка…"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "处理中…"
+ }
+ }
+ }
+ },
+ "notes.recording" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "جارٍ التسجيل…"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "রেকর্ড হচ্ছে…"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Recording…"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Grabando…"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Enregistrement…"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "रिकॉर्ड हो रहा है…"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Merekam…"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Gravando…"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Запись…"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "正在录制…"
+ }
+ }
+ }
+ },
+ "notes.rename-placeholder" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الاسم"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "নাম"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Name"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nombre"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nom"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "नाम"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nama"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Nome"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Имя"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "名字"
+ }
+ }
+ }
+ },
+ "notes.rename-speaker" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "من هذا؟"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ইনি কে?"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Who is it?"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "¿Quién es?"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "C'est qui ?"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "यह कौन है?"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Siapa ini?"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Quem é?"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Кто это?"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "这是谁?"
+ }
+ }
+ }
+ },
+ "notes.setup" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "يكتب Coucou مكالماتك على جهاز Mac باستخدام Parakeet، ويميّز الأصوات بنموذج صغير ثانٍ. يُنزَّل الاثنان مرة واحدة (نحو 650 ميغابايت)، ثم يعمل كل شيء بلا إنترنت."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou Parakeet দিয়ে আপনার Mac-এই কল লিখে ফেলে, আর দ্বিতীয় একটি ছোট মডেল দিয়ে কণ্ঠ আলাদা করে। দুটোই একবার ডাউনলোড হয় (প্রায় ৬৫০ MB), তারপর সব অফলাইনে চলে।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou writes your calls on your Mac with Parakeet, and tells the voices apart with a second small model. Both are downloaded once (about 650 MB), then everything works offline."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou transcribe tus llamadas en tu Mac con Parakeet y distingue las voces con un segundo modelo pequeño. Ambos se descargan una vez (unos 650 MB) y luego todo funciona sin conexión."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou écrit tes calls sur ton Mac avec Parakeet, et reconnaît les voix avec un second petit modèle. Les deux se téléchargent une fois (environ 650 Mo), puis tout marche hors ligne."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou आपकी कॉल Parakeet से आपके Mac पर ही लिखता है, और एक दूसरे छोटे मॉडल से आवाज़ें पहचानता है। दोनों एक बार डाउनलोड होते हैं (लगभग 650 MB), फिर सब ऑफ़लाइन चलता है।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou menulis panggilanmu di Mac dengan Parakeet, dan membedakan suara dengan model kecil kedua. Keduanya diunduh sekali (sekitar 650 MB), lalu semuanya bekerja luring."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Coucou transcreve suas chamadas no seu Mac com o Parakeet e distingue as vozes com um segundo modelo pequeno. Os dois são baixados uma vez (cerca de 650 MB) e depois tudo funciona offline."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou записывает звонки текстом прямо на Mac с помощью Parakeet и различает голоса второй небольшой моделью. Обе скачиваются один раз (около 650 МБ), дальше всё работает без сети."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Coucou 用 Parakeet 在你的 Mac 上转写通话,并用第二个小模型区分说话人。两者只需下载一次(约 650 MB),之后一切离线运行。"
+ }
+ }
+ }
+ },
+ "notes.setup-download" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تنزيل النماذج"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "মডেল ডাউনলোড করুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Download the models"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Descargar los modelos"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Télécharger les modèles"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "मॉडल डाउनलोड करें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unduh model"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Baixar os modelos"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Скачать модели"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "下载模型"
+ }
+ }
+ }
+ },
+ "notes.setup-title" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "تنزيل واحد ثم بلا إنترنت"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "একবার ডাউনলোড, তারপর অফলাইন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "One download, then offline"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Una descarga y luego sin conexión"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Un téléchargement, puis hors ligne"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "एक डाउनलोड, फिर ऑफ़लाइन"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sekali unduh, lalu luring"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Um download, depois offline"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Одна загрузка — и без сети"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "下载一次,之后离线"
+ }
+ }
+ }
+ },
+ "notes.stop" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "إيقاف"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "থামান"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Stop"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Detener"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Arrêter"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "रोकें"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hentikan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Parar"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Остановить"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "停止"
+ }
+ }
+ }
+ },
+ "notes.summarize" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "كتابة الملخص"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সারাংশ লিখুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Write the summary"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hacer el resumen"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Faire le résumé"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सारांश बनाएँ"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Buat ringkasan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Fazer o resumo"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Составить итог"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "生成摘要"
+ }
+ }
+ }
+ },
+ "notes.summarize-again" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "إعادة كتابة الملخص"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "আবার সারাংশ লিখুন"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Write the summary again"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Rehacer el resumen"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Refaire le résumé"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सारांश फिर से बनाएँ"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Buat ulang ringkasan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Refazer o resumo"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Составить итог заново"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "重新生成摘要"
+ }
+ }
+ }
+ },
+ "notes.summarizing" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "جارٍ كتابة الملخص…"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সারাংশ লেখা হচ্ছে…"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Writing the summary…"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Escribiendo el resumen…"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Écriture du résumé…"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सारांश लिखा जा रहा है…"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Menulis ringkasan…"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Escrevendo o resumo…"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Пишется итог…"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "正在生成摘要…"
+ }
+ }
+ }
+ },
+ "notes.summary" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الملخص"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "সারাংশ"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Summary"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Resumen"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Résumé"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "सारांश"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ringkasan"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Resumo"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Итог"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "摘要"
+ }
+ }
+ }
+ },
+ "notes.todos" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "المهام"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "করণীয়"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "To do"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Por hacer"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "À faire"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "करने वाले काम"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tugas"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "A fazer"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Задачи"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "待办"
+ }
+ }
+ }
+ },
+ "notes.transcript" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "النص"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ট্রান্সক্রিপ্ট"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transcript"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transcripción"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transcription"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ट्रांसक्रिप्ट"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transkrip"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Transcrição"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Расшифровка"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "转写"
+ }
+ }
+ }
+ },
"—" : {
},
diff --git a/NotchBuddy/Sources/App/FlowHubHome.swift b/NotchBuddy/Sources/App/FlowHubHome.swift
index 30fb5f81..69f7f9aa 100644
--- a/NotchBuddy/Sources/App/FlowHubHome.swift
+++ b/NotchBuddy/Sources/App/FlowHubHome.swift
@@ -17,7 +17,10 @@ struct HubHomePage: View {
var body: some View {
HubPageScaffold(title: greeting,
subtitle: String(format: String(localized: "hub.hint %@"), flow.key.label)) {
- Button { router.page = .notes } label: {
+ Button {
+ router.page = .notes
+ if Parakeet.shared.isReady, !NoteTaker.shared.isRecording { Task { await NoteTaker.shared.start() } }
+ } label: {
HStack(spacing: 7) {
Circle().fill(HubTheme.onAccent).frame(width: 9, height: 9)
Text("hub.record-call")
diff --git a/NotchBuddy/Sources/App/FlowHubNotes.swift b/NotchBuddy/Sources/App/FlowHubNotes.swift
index 4dc1ee23..eca95dd4 100644
--- a/NotchBuddy/Sources/App/FlowHubNotes.swift
+++ b/NotchBuddy/Sources/App/FlowHubNotes.swift
@@ -1,12 +1,658 @@
#if !APPSTORE
+import AppKit
import SwiftUI
-/// Coucou Flow → Notetaker.
+/// Coucou Flow → Notetaker: the calls on the left, the one chosen on the right.
struct HubNotesPage: View {
+ @ObservedObject private var taker = NoteTaker.shared
+ @ObservedObject private var parakeet = Parakeet.shared
+ @State private var selected: UUID?
+
+ private var shown: Note? {
+ if let recording = taker.recording, selected == nil || selected == recording.id { return recording }
+ if let selected, let note = taker.note(selected) { return note }
+ return taker.notes.first
+ }
+
+ var body: some View {
+ HStack(spacing: 0) {
+ HubNotesList(selected: $selected)
+ .frame(width: 280)
+ .overlay(alignment: .trailing) { Rectangle().fill(Color.white.opacity(0.06)).frame(width: 1) }
+ Group {
+ if !parakeet.isReady && taker.notes.isEmpty && taker.recording == nil {
+ HubNotesSetup()
+ } else if let note = shown {
+ if note.id == taker.recording?.id {
+ HubLiveNote(note: note)
+ } else {
+ HubNoteDetail(note: note)
+ }
+ } else {
+ HubNotesEmpty()
+ }
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
+ }
+ }
+}
+
+// MARK: - List
+
+private struct HubNotesList: View {
+ @Binding var selected: UUID?
+ @ObservedObject private var taker = NoteTaker.shared
+ @ObservedObject private var parakeet = Parakeet.shared
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 10) {
+ HubRecordButton {
+ selected = nil
+ }
+ .padding(.top, 34)
+ if let error = taker.startError {
+ Text(error)
+ .font(.system(size: 12))
+ .foregroundColor(HubTheme.accent)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ ScrollView {
+ LazyVStack(alignment: .leading, spacing: 4) {
+ ForEach(groups) { group in
+ HubLabel(group.title)
+ .padding(.horizontal, 6)
+ .padding(.top, 12)
+ .padding(.bottom, 2)
+ ForEach(group.notes) { note in
+ HubNoteRow(note: note, selected: isSelected(note)) { selected = note.id }
+ }
+ }
+ }
+ }
+ .scrollIndicators(.never)
+ HStack(alignment: .top, spacing: 8) {
+ Image(systemName: "lock")
+ .font(.system(size: 11))
+ .padding(.top, 1)
+ Text("notes.legal")
+ .font(.system(size: 11))
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ .foregroundColor(HubTheme.secondary)
+ .padding(10)
+ .background(RoundedRectangle(cornerRadius: 10).fill(HubTheme.card))
+ }
+ .padding(.horizontal, 14)
+ .padding(.bottom, 14)
+ }
+
+ private func isSelected(_ note: Note) -> Bool {
+ if let selected { return selected == note.id }
+ return note.id == (taker.recording?.id ?? taker.notes.first?.id)
+ }
+
+ private var groups: [HubNoteGroup] {
+ var out: [HubNoteGroup] = []
+ for note in taker.notes {
+ let title = HubHomePage.dayTitle(note.start)
+ if let last = out.indices.last, out[last].title == title {
+ out[last].notes.append(note)
+ } else {
+ out.append(HubNoteGroup(title: title, notes: [note]))
+ }
+ }
+ return out
+ }
+}
+
+private struct HubNoteGroup: Identifiable {
+ let title: String
+ var notes: [Note]
+ var id: String { title }
+}
+
+/// "Record a call" / "Stop".
+struct HubRecordButton: View {
+ var onStart: () -> Void = {}
+ @ObservedObject private var taker = NoteTaker.shared
+ @ObservedObject private var parakeet = Parakeet.shared
+
+ var body: some View {
+ Button {
+ if taker.isRecording {
+ taker.stop()
+ } else {
+ onStart()
+ Task { await taker.start() }
+ }
+ } label: {
+ HStack(spacing: 8) {
+ if taker.isRecording {
+ RoundedRectangle(cornerRadius: 2).fill(HubTheme.onAccent).frame(width: 10, height: 10)
+ Text("notes.stop")
+ } else {
+ Circle().fill(HubTheme.onAccent).frame(width: 10, height: 10)
+ Text("hub.record-call")
+ }
+ }
+ .frame(maxWidth: .infinity)
+ }
+ .buttonStyle(HubButtonStyle(primary: true))
+ .disabled(!parakeet.isReady && !taker.isRecording)
+ }
+}
+
+private struct HubNoteRow: View {
+ let note: Note
+ let selected: Bool
+ let action: () -> Void
+ @State private var hover = false
+
+ var body: some View {
+ Button(action: action) {
+ VStack(alignment: .leading, spacing: 6) {
+ Text(note.title)
+ .font(.system(size: 14, weight: selected ? .semibold : .regular))
+ .foregroundColor(selected ? HubTheme.text : Color(hex: "#D5D7DB"))
+ .lineLimit(2)
+ .multilineTextAlignment(.leading)
+ HStack(spacing: 6) {
+ Text(subtitle)
+ .font(.system(size: 12))
+ .foregroundColor(note.status == .recording ? HubTheme.red : HubTheme.secondary)
+ Spacer(minLength: 4)
+ HStack(spacing: 3) {
+ ForEach(note.speakers.prefix(5)) { speaker in
+ Circle().fill(HubTheme.speaker(speaker.color)).frame(width: 8, height: 8)
+ }
+ }
+ }
+ }
+ .padding(12)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .background(RoundedRectangle(cornerRadius: 10)
+ .fill(Color.white.opacity(selected ? 0.07 : (hover ? 0.035 : 0))))
+ .contentShape(Rectangle())
+ }
+ .buttonStyle(.plain)
+ .onHover { hover = $0 }
+ }
+
+ private var subtitle: String {
+ let time = note.start.formatted(date: .omitted, time: .shortened)
+ switch note.status {
+ case .recording: return String(localized: "notes.recording")
+ case .processing: return time + " · " + String(localized: "notes.processing-short")
+ case .failed: return time + " · " + String(localized: "notes.failed-short")
+ case .ready:
+ let minutes = max(1, Int((note.duration / 60).rounded()))
+ return time + " · " + String(format: String(localized: "hub.minutes %lld"), minutes)
+ }
+ }
+}
+
+// MARK: - States
+
+private struct HubNotesSetup: View {
+ @ObservedObject private var parakeet = Parakeet.shared
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 16) {
+ Text("hub.page.notes")
+ .font(.system(size: 28, weight: .bold))
+ Text("hub.notes-promo")
+ .font(.system(size: 14))
+ .foregroundColor(HubTheme.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ HubCard(padding: 20) {
+ Text("notes.setup-title")
+ .font(.system(size: 15, weight: .bold))
+ Text("notes.setup")
+ .font(.system(size: 13))
+ .foregroundColor(Color(hex: "#C7CAD0"))
+ .fixedSize(horizontal: false, vertical: true)
+ switch parakeet.state {
+ case .unsupported:
+ Text("hub.engine.unsupported")
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.accent)
+ case .downloading(let fraction):
+ ProgressView(value: fraction)
+ .progressViewStyle(.linear)
+ .frame(maxWidth: 320)
+ default:
+ Button(String(localized: "notes.setup-download")) { parakeet.download() }
+ .buttonStyle(HubButtonStyle(primary: true))
+ }
+ }
+ .frame(maxWidth: 560)
+ }
+ .padding(.horizontal, 40)
+ .padding(.top, 38)
+ }
+}
+
+private struct HubNotesEmpty: View {
+ var body: some View {
+ VStack(spacing: 12) {
+ Image(systemName: "waveform")
+ .font(.system(size: 30))
+ .foregroundColor(HubTheme.muted)
+ Text("notes.empty")
+ .font(.system(size: 14))
+ .foregroundColor(HubTheme.secondary)
+ .multilineTextAlignment(.center)
+ .frame(maxWidth: 360)
+ }
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ }
+}
+
+/// The call being recorded: the time, the two levels, the live transcript.
+private struct HubLiveNote: View {
+ let note: Note
+ @ObservedObject private var taker = NoteTaker.shared
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 18) {
+ HStack(alignment: .center, spacing: 12) {
+ Circle().fill(HubTheme.red).frame(width: 10, height: 10)
+ TimelineView(.periodic(from: note.start, by: 1)) { context in
+ Text(NoteBuilder.clock(context.date.timeIntervalSince(note.start)))
+ .font(.system(size: 26, weight: .bold).monospacedDigit())
+ }
+ Spacer()
+ Button(String(localized: "notes.stop")) { taker.stop() }
+ .buttonStyle(HubButtonStyle(primary: true))
+ }
+ HStack(spacing: 18) {
+ HubLevel(label: String(localized: "notes.me"), level: taker.micLevel, color: HubTheme.speaker(0))
+ HubLevel(label: String(localized: "notes.others"), level: taker.systemLevel, color: HubTheme.speaker(1))
+ }
+ HubLabel(String(localized: "notes.live"))
+ ScrollViewReader { proxy in
+ ScrollView {
+ LazyVStack(alignment: .leading, spacing: 12) {
+ if note.lines.isEmpty {
+ Text("notes.live-empty")
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ }
+ ForEach(note.lines) { line in
+ HubLineView(name: line.speaker == NoteBuilder.meID ? String(localized: "notes.me") : String(localized: "notes.others"),
+ color: HubTheme.speaker(line.speaker == NoteBuilder.meID ? 0 : 1),
+ line: line)
+ .id(line.id)
+ }
+ }
+ .padding(.bottom, 20)
+ }
+ .onChange(of: note.lines.count) {
+ if let last = note.lines.last { withAnimation { proxy.scrollTo(last.id, anchor: .bottom) } }
+ }
+ }
+ }
+ .padding(.horizontal, 36)
+ .padding(.top, 38)
+ }
+}
+
+private struct HubLevel: View {
+ let label: String
+ let level: Float
+ let color: Color
+
+ var body: some View {
+ HStack(spacing: 10) {
+ Text(label)
+ .font(.system(size: 12, weight: .semibold))
+ .foregroundColor(HubTheme.secondary)
+ .frame(width: 80, alignment: .leading)
+ GeometryReader { geo in
+ ZStack(alignment: .leading) {
+ Capsule().fill(Color.white.opacity(0.06))
+ Capsule().fill(color)
+ .frame(width: max(4, geo.size.width * CGFloat(min(1, sqrt(Double(level)) * 3))))
+ .animation(.easeOut(duration: 0.3), value: level)
+ }
+ }
+ .frame(height: 6)
+ }
+ .frame(maxWidth: .infinity)
+ }
+}
+
+/// One line of a transcript: who, when, what.
+private struct HubLineView: View {
+ let name: String
+ let color: Color
+ let line: NoteLine
+
+ var body: some View {
+ HStack(alignment: .top, spacing: 12) {
+ Text(String(name.prefix(1)).uppercased())
+ .font(.system(size: 11, weight: .bold))
+ .foregroundColor(.black.opacity(0.8))
+ .frame(width: 24, height: 24)
+ .background(Circle().fill(color))
+ VStack(alignment: .leading, spacing: 4) {
+ HStack(spacing: 8) {
+ Text(name).font(.system(size: 13, weight: .semibold)).foregroundColor(color)
+ Text(NoteBuilder.clock(line.start))
+ .font(.system(size: 12).monospacedDigit())
+ .foregroundColor(HubTheme.muted)
+ }
+ Text(line.text)
+ .font(.system(size: 14))
+ .lineSpacing(3)
+ .foregroundColor(HubTheme.body)
+ .textSelection(.enabled)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
+ }
+}
+
+// MARK: - A noted call
+
+private struct HubNoteDetail: View {
+ let note: Note
+ @ObservedObject private var taker = NoteTaker.shared
+ @State private var tab = 0
+ @State private var title = ""
+ @State private var copied = false
+ @State private var renaming: NoteSpeaker?
+ @State private var newName = ""
+ @State private var confirmDelete = false
+
+ var body: some View {
+ ScrollView {
+ VStack(alignment: .leading, spacing: 18) {
+ header
+ if note.status == .processing || taker.working.contains(note.id) && note.lines.isEmpty {
+ HStack(spacing: 10) {
+ ProgressView().controlSize(.small)
+ Text("notes.processing")
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ }
+ } else if note.status == .failed {
+ failed
+ } else {
+ speakers
+ Picker("", selection: $tab) {
+ Text("notes.summary").tag(0)
+ Text("notes.transcript").tag(1)
+ }
+ .pickerStyle(.segmented)
+ .labelsHidden()
+ .frame(width: 280)
+ if tab == 0 { summary } else { transcript }
+ }
+ }
+ .padding(.horizontal, 36)
+ .padding(.top, 38)
+ .padding(.bottom, 30)
+ .frame(maxWidth: 980, alignment: .leading)
+ }
+ .onAppear { title = note.title }
+ .onChange(of: note.id) { title = note.title; tab = 0 }
+ .onChange(of: note.title) { title = note.title }
+ .alert(String(localized: "notes.rename-speaker"), isPresented: Binding(get: { renaming != nil }, set: { if !$0 { renaming = nil } })) {
+ TextField(String(localized: "notes.rename-placeholder"), text: $newName)
+ Button(String(localized: "hub.save")) {
+ if let speaker = renaming { taker.rename(note.id, speaker: speaker.id, to: newName) }
+ renaming = nil
+ }
+ Button(String(localized: "hub.cancel"), role: .cancel) { renaming = nil }
+ }
+ .alert(String(localized: "notes.delete-confirm"), isPresented: $confirmDelete) {
+ Button(String(localized: "hub.delete"), role: .destructive) { taker.delete(note.id) }
+ Button(String(localized: "hub.cancel"), role: .cancel) {}
+ }
+ }
+
+ private var header: some View {
+ HStack(alignment: .top, spacing: 16) {
+ VStack(alignment: .leading, spacing: 6) {
+ TextField("", text: $title)
+ .textFieldStyle(.plain)
+ .font(.system(size: 24, weight: .bold))
+ .onSubmit { taker.rename(note.id, title: title) }
+ Text(dateLine)
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ }
+ Spacer(minLength: 0)
+ if note.status == .ready {
+ Button {
+ NSPasteboard.copyText(taker.markdown(note))
+ copied = true
+ Task { @MainActor in
+ try? await Task.sleep(for: .seconds(1.5))
+ copied = false
+ }
+ } label: {
+ Label(copied ? String(localized: "notes.copied") : String(localized: "notes.copy-markdown"),
+ systemImage: copied ? "checkmark" : "doc.on.doc")
+ }
+ .buttonStyle(HubButtonStyle())
+ }
+ Menu {
+ if note.status == .ready {
+ Button(String(localized: "notes.export")) { taker.export(note) }
+ Button(String(localized: "notes.summarize-again")) { Task { await taker.summarize(note.id) } }
+ .disabled(taker.summaryEngine == .off || note.lines.isEmpty)
+ Divider()
+ }
+ Button(String(localized: "hub.delete"), role: .destructive) { confirmDelete = true }
+ } label: {
+ Image(systemName: "ellipsis")
+ }
+ .menuStyle(.borderlessButton)
+ .menuIndicator(.hidden)
+ .fixedSize()
+ .frame(width: 34, height: 34)
+ .background(RoundedRectangle(cornerRadius: 9).fill(Color(hex: "#1D1E22")))
+ }
+ }
+
+ private var dateLine: String {
+ var parts = [note.start.formatted(.dateTime.weekday(.wide).day().month(.wide))]
+ let end = note.end ?? Date()
+ parts.append(note.start.formatted(date: .omitted, time: .shortened) + " → " + end.formatted(date: .omitted, time: .shortened))
+ if let app = note.app, !app.isEmpty { parts.append(app) }
+ return parts.joined(separator: " · ")
+ }
+
+ private var failed: some View {
+ HubCard {
+ Text("notes.failed")
+ .font(.system(size: 14, weight: .semibold))
+ if let error = note.error {
+ Text(error)
+ .font(.system(size: 12))
+ .foregroundColor(HubTheme.secondary)
+ }
+ if taker.hasAudio(note.id) {
+ Button(String(localized: "hub.engine.retry")) { Task { await taker.process(note.id) } }
+ .buttonStyle(HubButtonStyle(primary: true))
+ }
+ }
+ }
+
+ private var speakers: some View {
+ let shares = note.shares
+ return HubWrap(spacing: 8) {
+ ForEach(note.speakers) { speaker in
+ Button {
+ newName = speaker.name
+ renaming = speaker
+ } label: {
+ HStack(spacing: 7) {
+ Text(String(speaker.name.prefix(1)).uppercased())
+ .font(.system(size: 11, weight: .bold))
+ .foregroundColor(.black.opacity(0.8))
+ .frame(width: 20, height: 20)
+ .background(Circle().fill(HubTheme.speaker(speaker.color)))
+ Text(speaker.name + (shares[speaker.id].map { " · " + $0.formatted(.percent.precision(.fractionLength(0))) } ?? ""))
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.speaker(speaker.color))
+ Image(systemName: "pencil")
+ .font(.system(size: 10))
+ .foregroundColor(HubTheme.speaker(speaker.color).opacity(0.7))
+ }
+ .padding(.leading, 6)
+ .padding(.trailing, 10)
+ .frame(height: 30)
+ .background(Capsule().fill(HubTheme.speaker(speaker.color).opacity(0.12)))
+ }
+ .buttonStyle(.plain)
+ .help(String(localized: "notes.rename-speaker"))
+ }
+ }
+ }
+
+ @ViewBuilder private var summary: some View {
+ if taker.working.contains(note.id) && note.summary == nil {
+ HStack(spacing: 10) {
+ ProgressView().controlSize(.small)
+ Text("notes.summarizing")
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ }
+ } else if note.summary == nil && note.keyPoints.isEmpty && note.todos.isEmpty {
+ HubCard {
+ Text(note.lines.isEmpty ? String(localized: "notes.nothing-heard") : String(localized: "notes.no-summary"))
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ if !note.lines.isEmpty {
+ HubSummaryEnginePicker()
+ Button(String(localized: "notes.summarize")) { Task { await taker.summarize(note.id) } }
+ .buttonStyle(HubButtonStyle(primary: true))
+ .disabled(taker.summaryEngine == .off)
+ }
+ }
+ } else {
+ HStack(alignment: .top, spacing: 20) {
+ VStack(alignment: .leading, spacing: 14) {
+ if let text = note.summary, !text.isEmpty {
+ Text(text)
+ .font(.system(size: 14))
+ .lineSpacing(4)
+ .foregroundColor(HubTheme.body)
+ .textSelection(.enabled)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ if !note.keyPoints.isEmpty {
+ HubLabel(String(localized: "notes.key-points"))
+ VStack(alignment: .leading, spacing: 9) {
+ ForEach(note.keyPoints, id: \.self) { point in
+ HStack(alignment: .top, spacing: 10) {
+ Text(verbatim: "•").foregroundColor(HubTheme.muted)
+ Text(point)
+ .font(.system(size: 14))
+ .foregroundColor(Color(hex: "#D5D7DB"))
+ .textSelection(.enabled)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
+ }
+ }
+ }
+ .frame(maxWidth: .infinity, alignment: .leading)
+ if !note.todos.isEmpty {
+ HubTodos(note: note)
+ .frame(width: 280)
+ }
+ }
+ }
+ }
+
+ private var transcript: some View {
+ LazyVStack(alignment: .leading, spacing: 14) {
+ if note.lines.isEmpty {
+ Text("notes.nothing-heard")
+ .font(.system(size: 13))
+ .foregroundColor(HubTheme.secondary)
+ }
+ ForEach(note.lines) { line in
+ let speaker = note.speaker(line.speaker)
+ HubLineView(name: speaker?.name ?? "?", color: HubTheme.speaker(speaker?.color ?? 1), line: line)
+ }
+ }
+ }
+}
+
+private struct HubTodos: View {
+ let note: Note
+ @ObservedObject private var taker = NoteTaker.shared
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 12) {
+ HStack {
+ Text("notes.todos").font(.system(size: 14, weight: .bold))
+ Spacer()
+ Text(verbatim: "\(note.todos.filter(\.done).count) / \(note.todos.count)")
+ .font(.system(size: 12).monospacedDigit())
+ .foregroundColor(HubTheme.secondary)
+ }
+ ForEach(note.todos) { todo in
+ Button { taker.toggle(note.id, todo: todo.id) } label: {
+ HStack(alignment: .top, spacing: 10) {
+ ZStack {
+ RoundedRectangle(cornerRadius: 5)
+ .fill(todo.done ? HubTheme.accent : Color.clear)
+ RoundedRectangle(cornerRadius: 5)
+ .strokeBorder(todo.done ? Color.clear : Color(hex: "#5A5F68"), lineWidth: 1.5)
+ if todo.done {
+ Image(systemName: "checkmark")
+ .font(.system(size: 9, weight: .heavy))
+ .foregroundColor(HubTheme.onAccent)
+ }
+ }
+ .frame(width: 16, height: 16)
+ .padding(.top, 1)
+ VStack(alignment: .leading, spacing: 2) {
+ Text(todo.text)
+ .font(.system(size: 13))
+ .strikethrough(todo.done)
+ .foregroundColor(todo.done ? HubTheme.muted : Color(hex: "#E1E3E6"))
+ .fixedSize(horizontal: false, vertical: true)
+ let extra = [todo.owner, todo.due].compactMap { $0 }.joined(separator: " · ")
+ if !extra.isEmpty {
+ Text(extra)
+ .font(.system(size: 12))
+ .foregroundColor(HubTheme.secondary)
+ }
+ }
+ Spacer(minLength: 0)
+ }
+ .contentShape(Rectangle())
+ }
+ .buttonStyle(.plain)
+ }
+ }
+ .padding(16)
+ .background(RoundedRectangle(cornerRadius: 14, style: .continuous).fill(HubTheme.card))
+ .overlay(RoundedRectangle(cornerRadius: 14, style: .continuous).strokeBorder(HubTheme.line))
+ }
+}
+
+/// Who writes the summaries: Claude, Apple Intelligence, or nobody.
+struct HubSummaryEnginePicker: View {
+ @ObservedObject private var taker = NoteTaker.shared
+
var body: some View {
- HubPageScaffold(title: String(localized: "hub.page.notes"),
- subtitle: String(localized: "hub.notes-promo")) {
- EmptyView()
+ HubRow(title: String(localized: "notes.engine")) {
+ Picker("", selection: $taker.summaryEngine) {
+ ForEach(NoteSummaryEngine.allCases) { engine in
+ Text(engine.label).tag(engine)
+ }
+ }
+ .labelsHidden()
+ .frame(width: 190)
}
}
}
diff --git a/NotchBuddy/Sources/App/FlowHubSettings.swift b/NotchBuddy/Sources/App/FlowHubSettings.swift
index 5b967150..3367add9 100644
--- a/NotchBuddy/Sources/App/FlowHubSettings.swift
+++ b/NotchBuddy/Sources/App/FlowHubSettings.swift
@@ -62,6 +62,20 @@ struct HubSettingsPage: View {
HubRecognitionSettings(language: $language)
}
+ HubLabel(String(localized: "hub.page.notes"))
+ HubCard {
+ HubSummaryEnginePicker()
+ Text("notes.engine-detail")
+ .font(.system(size: 12))
+ .foregroundColor(HubTheme.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ HubDivider()
+ Text("notes.legal")
+ .font(.system(size: 12))
+ .foregroundColor(HubTheme.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+
HubLabel(String(localized: "hub.settings.privacy"))
HubCard {
HubRow(title: String(localized: "hub.settings.keep")) {
diff --git a/NotchBuddy/Sources/App/FlowPill.swift b/NotchBuddy/Sources/App/FlowPill.swift
index de0371ec..83acf317 100644
--- a/NotchBuddy/Sources/App/FlowPill.swift
+++ b/NotchBuddy/Sources/App/FlowPill.swift
@@ -22,6 +22,9 @@ final class FlowPillModel: ObservableObject {
case pastedAgain
}
@Published var phase: Phase = .idle
+ /// A call is being recorded by the Notetaker: resting, the pill shows it, with a stop button.
+ @Published var noteStartedAt: Date?
+ var stopNote: (@MainActor () -> Void)?
}
/// Eases the dots toward the microphone's levels, frame by frame (fast up, slower down), and
@@ -71,7 +74,7 @@ struct FlowPillView: View {
static let restingSize = CGSize(width: 44, height: 8)
static let openHeight: CGFloat = 34
- private var open: Bool { model.phase != .idle }
+ private var open: Bool { model.phase != .idle || model.noteStartedAt != nil }
var body: some View {
ZStack(alignment: .bottom) {
@@ -87,6 +90,7 @@ struct FlowPillView: View {
case .copied: return Self.messageWidth(String(localized: "flow.copied-noaccess"))
case .failed: return Self.messageWidth(String(localized: "flow.failed"))
case .pastedAgain: return Self.messageWidth(String(localized: "flow.pasted-again"))
+ case .idle: return 150
default: return 118
}
}
@@ -138,6 +142,8 @@ struct FlowPillView: View {
.font(.system(size: 12, weight: .medium))
.foregroundColor(Color(hex: "#E8E9EC"))
.fixedSize()
+ case .idle:
+ noteContent
default:
dots
}
@@ -154,6 +160,32 @@ struct FlowPillView: View {
.frame(width: 22, height: 22, alignment: .center)
}
+ /// A call being recorded: a red dot, the time, and a button to stop.
+ @ViewBuilder private var noteContent: some View {
+ if let start = model.noteStartedAt {
+ HStack(spacing: 8) {
+ Circle()
+ .fill(Color(hex: "#FF453A"))
+ .frame(width: 8, height: 8)
+ .shadow(color: Color(hex: "#FF453A").opacity(0.6), radius: 3)
+ TimelineView(.periodic(from: start, by: 1)) { context in
+ Text(NoteBuilder.clock(context.date.timeIntervalSince(start)))
+ .font(.system(size: 12, weight: .semibold).monospacedDigit())
+ .foregroundColor(Color(hex: "#E8E9EC"))
+ }
+ Button { model.stopNote?() } label: {
+ RoundedRectangle(cornerRadius: 2)
+ .fill(Color.white)
+ .frame(width: 8, height: 8)
+ .frame(width: 22, height: 22)
+ .background(Circle().fill(Color.white.opacity(0.16)))
+ }
+ .buttonStyle(.plain)
+ .help(String(localized: "notes.stop"))
+ }
+ }
+ }
+
private var dots: some View {
let active = model.phase == .listening || model.phase == .locked || model.phase == .thinking
return TimelineView(.animation(minimumInterval: 1.0 / 60, paused: !active)) { context in
@@ -215,15 +247,36 @@ final class FlowPillController {
private var restTask: Task<Void, Never>?
private var screenObserver: NSObjectProtocol?
+ /// Whether Flow dictation is on (the resting pill shows).
+ private var dictationOn = false
+
init(bands: FlowAudioBands) {
self.bands = bands
+ model.stopNote = { NoteTaker.shared.stop() }
+ }
+
+ /// The Notetaker records (a date) or stopped (nil): the pill shows it even when dictation is off,
+ /// and takes clicks for its stop button.
+ func setNote(_ start: Date?) {
+ model.noteStartedAt = start
+ if start != nil {
+ if panel == nil { build() }
+ guard let panel else { return }
+ panel.ignoresMouseEvents = false
+ if !panel.isVisible { place(panel, onMouseScreen: false) }
+ panel.orderFrontRegardless()
+ } else {
+ panel?.ignoresMouseEvents = true
+ if !dictationOn { panel?.orderOut(nil) }
+ }
}
/// Flow dictation on: the resting pill shows. Off: it goes away.
func setEnabled(_ on: Bool) {
restTask?.cancel()
model.phase = .idle
- if on {
+ dictationOn = on
+ if on || model.noteStartedAt != nil {
if panel == nil { build() }
if let panel { place(panel, onMouseScreen: false); panel.orderFrontRegardless() }
if screenObserver == nil {
diff --git a/NotchBuddy/Sources/App/NoteAudio.swift b/NotchBuddy/Sources/App/NoteAudio.swift
new file mode 100644
index 00000000..513481a5
--- /dev/null
+++ b/NotchBuddy/Sources/App/NoteAudio.swift
@@ -0,0 +1,238 @@
+#if !APPSTORE
+import AudioToolbox
+import AVFoundation
+import CoreAudio
+import os
+
+/// One side of a call (your microphone, or what the Mac plays): written to a 16 kHz WAV file as
+/// it comes, with the stretch not transcribed yet kept in memory for the live transcript.
+final class ChannelRecorder: @unchecked Sendable {
+ static let sampleRate = 16_000.0
+
+ let url: URL
+ private let queue: DispatchQueue
+ /// Touched on `queue` only.
+ private var file: AVAudioFile?
+
+ private struct Live {
+ var pending: [Float] = []
+ /// Where `pending` starts, in seconds from the start of the recording.
+ var pendingStart = 0.0
+ var total = 0
+ var level: Float = 0
+ /// Seconds with sound in them, to tell an empty side (no call, no headphones) from a real one.
+ var voiced = 0.0
+ }
+ private let live = OSAllocatedUnfairLock(initialState: Live())
+
+ init(url: URL, label: String) throws {
+ self.url = url
+ queue = DispatchQueue(label: label, qos: .userInitiated)
+ let settings: [String: Any] = [
+ AVFormatIDKey: kAudioFormatLinearPCM,
+ AVSampleRateKey: Self.sampleRate,
+ AVNumberOfChannelsKey: 1,
+ AVLinearPCMBitDepthKey: 16,
+ AVLinearPCMIsFloatKey: false,
+ AVLinearPCMIsBigEndianKey: false,
+ ]
+ file = try AVAudioFile(forWriting: url, settings: settings, commonFormat: .pcmFormatFloat32, interleaved: false)
+ }
+
+ /// From the audio thread.
+ func append(_ samples: [Float]) {
+ guard !samples.isEmpty else { return }
+ let rms = Self.rms(samples[...])
+ live.withLock { state in
+ state.pending.append(contentsOf: samples)
+ state.total += samples.count
+ state.level = rms
+ if rms > 0.01 { state.voiced += Double(samples.count) / Self.sampleRate }
+ }
+ queue.async { [self] in
+ guard let file,
+ let buffer = AVAudioPCMBuffer(pcmFormat: Resampler16k.format, frameCapacity: AVAudioFrameCount(samples.count)),
+ let channel = buffer.floatChannelData?[0] else { return }
+ buffer.frameLength = AVAudioFrameCount(samples.count)
+ samples.withUnsafeBufferPointer { source in
+ if let base = source.baseAddress { channel.update(from: base, count: samples.count) }
+ }
+ try? file.write(from: buffer)
+ }
+ }
+
+ var level: Float { live.withLock { $0.level } }
+ var voicedSeconds: Double { live.withLock { $0.voiced } }
+
+ /// The stretch not transcribed yet, once it is long enough and ends on a pause (or has become
+ /// too long to wait). Silent stretches are dropped without a word.
+ func takeChunk(minSeconds: Double = 4, maxSeconds: Double = 18, force: Bool = false) -> (start: Double, samples: [Float])? {
+ live.withLock { state -> (start: Double, samples: [Float])? in
+ let seconds = Double(state.pending.count) / Self.sampleRate
+ guard seconds >= (force ? 0.5 : minSeconds) else { return nil }
+ let tail = state.pending.suffix(Int(Self.sampleRate / 2))
+ guard force || Self.rms(tail) < 0.012 || seconds >= maxSeconds else { return nil }
+ let chunk = (start: state.pendingStart, samples: state.pending)
+ state.pendingStart = Double(state.total) / Self.sampleRate
+ state.pending.removeAll(keepingCapacity: true)
+ return Self.rms(chunk.samples[...]) < 0.004 ? nil : chunk
+ }
+ }
+
+ /// Closes the file once everything queued is written.
+ func close() async {
+ await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
+ queue.async { [self] in
+ file = nil
+ continuation.resume()
+ }
+ }
+ }
+
+ static func rms(_ samples: ArraySlice<Float>) -> Float {
+ guard !samples.isEmpty else { return 0 }
+ var sum: Float = 0
+ for s in samples { sum += s * s }
+ return (sum / Float(samples.count)).squareRoot()
+ }
+}
+
+// MARK: - Microphone
+
+/// The microphone, as 16 kHz mono samples.
+final class MicCapture: @unchecked Sendable {
+ private let engine = AVAudioEngine()
+
+ func start(sink: @escaping @Sendable ([Float]) -> Void) -> Bool {
+ let input = engine.inputNode
+ let format = input.outputFormat(forBus: 0)
+ guard let resampler = Resampler16k(from: format) else { return false }
+ input.installTap(onBus: 0, bufferSize: 2048, format: format) { buffer, _ in
+ sink(resampler.convert(buffer))
+ }
+ engine.prepare()
+ do { try engine.start() } catch {
+ input.removeTap(onBus: 0)
+ return false
+ }
+ return true
+ }
+
+ func stop() {
+ engine.inputNode.removeTap(onBus: 0)
+ engine.stop()
+ }
+}
+
+// MARK: - The Mac's sound
+
+/// Everything the Mac plays (the other people of a call, whatever the app), through a Core Audio
+/// process tap (macOS 14.2+). macOS asks once for the "System Audio Recording" permission.
+/// Nothing is muted: you keep hearing the call.
+final class SystemAudioTap: @unchecked Sendable {
+ enum TapError: LocalizedError {
+ case failed(String, OSStatus)
+ var errorDescription: String? {
+ switch self {
+ case .failed(let step, let status): return "\(step) (\(status))"
+ }
+ }
+ }
+
+ private var tapID = AudioObjectID(kAudioObjectUnknown)
+ private var aggregateID = AudioObjectID(kAudioObjectUnknown)
+ private var procID: AudioDeviceIOProcID?
+ private let queue = DispatchQueue(label: "fr.louisraille.NotchBuddy.notetaker.system", qos: .userInitiated)
+
+ func start(sink: @escaping @Sendable ([Float]) -> Void) throws {
+ let description = CATapDescription(stereoGlobalTapButExcludeProcesses: [])
+ description.uuid = UUID()
+ description.name = "Coucou Notetaker"
+ description.isPrivate = true
+ description.muteBehavior = .unmuted
+
+ var tap = AudioObjectID(kAudioObjectUnknown)
+ var status = AudioHardwareCreateProcessTap(description, &tap)
+ guard status == noErr else { throw TapError.failed("process tap", status) }
+ tapID = tap
+
+ var formatAddress = AudioObjectPropertyAddress(mSelector: kAudioTapPropertyFormat,
+ mScope: kAudioObjectPropertyScopeGlobal,
+ mElement: kAudioObjectPropertyElementMain)
+ var description16 = AudioStreamBasicDescription()
+ var size = UInt32(MemoryLayout<AudioStreamBasicDescription>.size)
+ status = AudioObjectGetPropertyData(tap, &formatAddress, 0, nil, &size, &description16)
+ guard status == noErr, let format = AVAudioFormat(streamDescription: &description16),
+ let resampler = Resampler16k(from: format) else {
+ stop()
+ throw TapError.failed("tap format", status)
+ }
+
+ let outputUID = try Self.defaultOutputUID()
+ let aggregate: [String: Any] = [
+ kAudioAggregateDeviceNameKey: "Coucou Notetaker",
+ kAudioAggregateDeviceUIDKey: UUID().uuidString,
+ kAudioAggregateDeviceMainSubDeviceKey: outputUID,
+ kAudioAggregateDeviceIsPrivateKey: true,
+ kAudioAggregateDeviceIsStackedKey: false,
+ kAudioAggregateDeviceTapAutoStartKey: true,
+ kAudioAggregateDeviceSubDeviceListKey: [[kAudioSubDeviceUIDKey: outputUID]],
+ kAudioAggregateDeviceTapListKey: [[kAudioSubTapDriftCompensationKey: true,
+ kAudioSubTapUIDKey: description.uuid.uuidString]],
+ ]
+ var device = AudioObjectID(kAudioObjectUnknown)
+ status = AudioHardwareCreateAggregateDevice(aggregate as CFDictionary, &device)
+ guard status == noErr else {
+ stop()
+ throw TapError.failed("aggregate device", status)
+ }
+ aggregateID = device
+
+ var proc: AudioDeviceIOProcID?
+ status = AudioDeviceCreateIOProcIDWithBlock(&proc, device, queue) { _, input, _, _, _ in
+ guard let buffer = AVAudioPCMBuffer(pcmFormat: format, bufferListNoCopy: input, deallocator: nil) else { return }
+ sink(resampler.convert(buffer))
+ }
+ guard status == noErr, let proc else {
+ stop()
+ throw TapError.failed("io proc", status)
+ }
+ procID = proc
+ status = AudioDeviceStart(device, proc)
+ guard status == noErr else {
+ stop()
+ throw TapError.failed("start", status)
+ }
+ }
+
+ func stop() {
+ if aggregateID != AudioObjectID(kAudioObjectUnknown) {
+ if let procID {
+ AudioDeviceStop(aggregateID, procID)
+ AudioDeviceDestroyIOProcID(aggregateID, procID)
+ }
+ AudioHardwareDestroyAggregateDevice(aggregateID)
+ }
+ if tapID != AudioObjectID(kAudioObjectUnknown) { AudioHardwareDestroyProcessTap(tapID) }
+ procID = nil
+ aggregateID = AudioObjectID(kAudioObjectUnknown)
+ tapID = AudioObjectID(kAudioObjectUnknown)
+ }
+
+ private static func defaultOutputUID() throws -> String {
+ var address = AudioObjectPropertyAddress(mSelector: kAudioHardwarePropertyDefaultSystemOutputDevice,
+ mScope: kAudioObjectPropertyScopeGlobal,
+ mElement: kAudioObjectPropertyElementMain)
+ var device = AudioObjectID(kAudioObjectUnknown)
+ var size = UInt32(MemoryLayout<AudioObjectID>.size)
+ var status = AudioObjectGetPropertyData(AudioObjectID(kAudioObjectSystemObject), &address, 0, nil, &size, &device)
+ guard status == noErr, device != AudioObjectID(kAudioObjectUnknown) else { throw TapError.failed("output device", status) }
+ address.mSelector = kAudioDevicePropertyDeviceUID
+ var uid: CFString = "" as CFString
+ size = UInt32(MemoryLayout<CFString>.stride)
+ status = withUnsafeMutablePointer(to: &uid) { AudioObjectGetPropertyData(device, &address, 0, nil, &size, $0) }
+ guard status == noErr else { throw TapError.failed("output device uid", status) }
+ return uid as String
+ }
+}
+#endif
diff --git a/NotchBuddy/Sources/App/NoteModels.swift b/NotchBuddy/Sources/App/NoteModels.swift
new file mode 100644
index 00000000..02ff20d2
--- /dev/null
+++ b/NotchBuddy/Sources/App/NoteModels.swift
@@ -0,0 +1,289 @@
+import Foundation
+
+/// Someone in a call. You are always "me"; the others get "Person 2", "Person 3"… until renamed.
+struct NoteSpeaker: Codable, Hashable, Identifiable, Sendable {
+ var id: String
+ var name: String
+ /// Index in the window's speaker colors.
+ var color: Int
+ var isMe = false
+}
+
+/// One turn of speech.
+struct NoteLine: Codable, Hashable, Identifiable, Sendable {
+ var id = UUID()
+ var speaker: String
+ /// Seconds from the start of the recording.
+ var start: Double
+ var end: Double
+ var text: String
+}
+
+struct NoteTodo: Codable, Hashable, Identifiable, Sendable {
+ var id = UUID()
+ var text: String
+ var owner: String?
+ var due: String?
+ var done = false
+}
+
+/// A call noted by the Notetaker.
+struct Note: Codable, Hashable, Identifiable, Sendable {
+ enum Status: String, Codable, Sendable {
+ case recording, processing, ready, failed
+ }
+
+ var id = UUID()
+ var title: String
+ /// Set once you rename the note: the summary then keeps your title.
+ var titleEdited: Bool?
+ var start: Date
+ var end: Date?
+ /// The call app seen when the recording started ("Zoom", "Google Chrome").
+ var app: String?
+ var status: Status = .recording
+ var speakers: [NoteSpeaker] = []
+ var lines: [NoteLine] = []
+ var summary: String?
+ var keyPoints: [String] = []
+ var todos: [NoteTodo] = []
+ var error: String?
+
+ var duration: TimeInterval { (end ?? Date()).timeIntervalSince(start) }
+
+ func speaker(_ id: String) -> NoteSpeaker? { speakers.first { $0.id == id } }
+
+ /// Each speaker's share of the talking, from the length of their lines.
+ var shares: [String: Double] {
+ var time: [String: Double] = [:]
+ for line in lines { time[line.speaker, default: 0] += max(0.1, line.end - line.start) }
+ let total = time.values.reduce(0, +)
+ guard total > 0 else { return [:] }
+ return time.mapValues { $0 / total }
+ }
+}
+
+/// A word with its place in the audio.
+struct TimedWord: Hashable, Sendable {
+ var text: String
+ var start: Double
+ var end: Double
+}
+
+/// A stretch of audio where one voice speaks, from the diarizer.
+struct SpeakerTurn: Hashable, Sendable {
+ var speaker: String
+ var start: Double
+ var end: Double
+}
+
+/// Builds the transcript of a call from the two recordings (tests/NoteModelsTests.swift):
+/// the microphone is you, the Mac's sound is the others, told apart by the diarizer.
+enum NoteBuilder {
+ /// Words further apart than this start a new line.
+ static let pause = 1.4
+ /// A line never gets longer than this, so the transcript stays readable.
+ static let maxLineSeconds = 40.0
+
+ static let meID = "me"
+
+ /// The others' words, each given to the voice speaking at that moment (or the nearest one).
+ static func assign(_ words: [TimedWord], to turns: [SpeakerTurn], fallback: String) -> [(speaker: String, word: TimedWord)] {
+ words.map { word -> (speaker: String, word: TimedWord) in
+ let mid = (word.start + word.end) / 2
+ if let turn = turns.first(where: { mid >= $0.start && mid <= $0.end }) {
+ return (speaker: turn.speaker, word: word)
+ }
+ let nearest = turns.min { distance(mid, $0) < distance(mid, $1) }
+ if let nearest, distance(mid, nearest) < 2 { return (speaker: nearest.speaker, word: word) }
+ return (speaker: fallback, word: word)
+ }
+ }
+
+ private static func distance(_ t: Double, _ turn: SpeakerTurn) -> Double {
+ t < turn.start ? turn.start - t : (t > turn.end ? t - turn.end : 0)
+ }
+
+ /// Consecutive words of the same speaker, close in time, make one line.
+ static func lines(from words: [(speaker: String, word: TimedWord)]) -> [NoteLine] {
+ var out: [NoteLine] = []
+ for (speaker, word) in words {
+ if var last = out.last, last.speaker == speaker, word.start - last.end < pause,
+ word.end - last.start < maxLineSeconds {
+ last.text += " " + word.text
+ last.end = word.end
+ out[out.count - 1] = last
+ } else {
+ out.append(NoteLine(speaker: speaker, start: word.start, end: word.end, text: word.text))
+ }
+ }
+ return out
+ }
+
+ /// Without headphones, the others' voices come out of the speakers and into the microphone too.
+ /// A line of yours whose words the others' recording also has, at the same moment, is that echo.
+ static func removingEcho(mine: [NoteLine], others: [NoteLine]) -> [NoteLine] {
+ mine.filter { line in
+ let words = tokens(line.text)
+ guard words.count >= 2 else {
+ // A lone word: echo only if the others said exactly it at that moment.
+ return !others.contains { overlaps($0, line, margin: 0.8) && tokens($0.text).contains(words.first ?? "") }
+ }
+ let near = others.filter { overlaps($0, line, margin: 1.5) }.flatMap { tokens($0.text) }
+ guard !near.isEmpty else { return true }
+ let pool = Set(near)
+ let shared = words.filter { pool.contains($0) }.count
+ return Double(shared) / Double(words.count) < 0.6
+ }
+ }
+
+ private static func overlaps(_ a: NoteLine, _ b: NoteLine, margin: Double) -> Bool {
+ a.start < b.end + margin && b.start < a.end + margin
+ }
+
+ static func tokens(_ s: String) -> [String] {
+ s.lowercased().split { !($0.isLetter || $0.isNumber) }.map(String.init)
+ }
+
+ /// The whole transcript: your lines (echo removed) and the others', in time order, with the
+ /// speakers named in the order they first speak.
+ static func build(mine: [TimedWord], others: [TimedWord], turns: [SpeakerTurn],
+ meName: String, personName: (Int) -> String) -> (speakers: [NoteSpeaker], lines: [NoteLine]) {
+ let myLines = lines(from: mine.map { (speaker: meID, word: $0) })
+ let theirLines = lines(from: assign(others, to: turns, fallback: "others"))
+ let all = (removingEcho(mine: myLines, others: theirLines) + theirLines).sorted { $0.start < $1.start }
+ var speakers: [NoteSpeaker] = []
+ if !myLines.isEmpty || others.isEmpty {
+ speakers.append(NoteSpeaker(id: meID, name: meName, color: 0, isMe: true))
+ }
+ var ids: [String: String] = [:]
+ var renamed: [NoteLine] = []
+ for var line in all {
+ if line.speaker != meID {
+ if let id = ids[line.speaker] {
+ line.speaker = id
+ } else {
+ let number = speakers.filter { !$0.isMe }.count + 2
+ let id = "p\(number)"
+ ids[line.speaker] = id
+ speakers.append(NoteSpeaker(id: id, name: personName(number), color: number - 1))
+ line.speaker = id
+ }
+ }
+ renamed.append(line)
+ }
+ return (speakers, renamed)
+ }
+
+ /// One recording for everyone (people around the same Mac, no call): the diarizer tells the
+ /// voices apart and they are all "Person 1", "Person 2"…
+ static func buildRoom(words: [TimedWord], turns: [SpeakerTurn],
+ personName: (Int) -> String) -> (speakers: [NoteSpeaker], lines: [NoteLine]) {
+ let raw = lines(from: assign(words, to: turns, fallback: "others"))
+ var speakers: [NoteSpeaker] = []
+ var ids: [String: String] = [:]
+ let named = raw.map { line -> NoteLine in
+ var line = line
+ if let id = ids[line.speaker] {
+ line.speaker = id
+ } else {
+ let number = speakers.count + 1
+ let id = "p\(number)"
+ ids[line.speaker] = id
+ speakers.append(NoteSpeaker(id: id, name: personName(number), color: number))
+ line.speaker = id
+ }
+ return line
+ }
+ return (speakers, named)
+ }
+
+ // MARK: - Markdown
+
+ /// The note as Markdown: title, date, summary, key points, to-dos, then the transcript.
+ static func markdown(_ note: Note, labels: MarkdownLabels) -> String {
+ var out = "# \(note.title)\n\n"
+ let date = note.start.formatted(date: .complete, time: .shortened)
+ let minutes = max(1, Int((note.duration / 60).rounded()))
+ out += "_\(date) · \(minutes) min_"
+ if !note.speakers.isEmpty {
+ out += " \n_" + note.speakers.map(\.name).joined(separator: ", ") + "_"
+ }
+ out += "\n\n"
+ if let summary = note.summary, !summary.isEmpty {
+ out += "## \(labels.summary)\n\n\(summary)\n\n"
+ }
+ if !note.keyPoints.isEmpty {
+ out += "## \(labels.keyPoints)\n\n" + note.keyPoints.map { "- \($0)" }.joined(separator: "\n") + "\n\n"
+ }
+ if !note.todos.isEmpty {
+ out += "## \(labels.todos)\n\n"
+ out += note.todos.map { todo in
+ var line = "- [\(todo.done ? "x" : " ")] \(todo.text)"
+ let extra = [todo.owner, todo.due].compactMap { $0 }.filter { !$0.isEmpty }
+ if !extra.isEmpty { line += " (\(extra.joined(separator: ", ")))" }
+ return line
+ }.joined(separator: "\n") + "\n\n"
+ }
+ if !note.lines.isEmpty {
+ out += "## \(labels.transcript)\n\n"
+ out += note.lines.map { line in
+ let name = note.speaker(line.speaker)?.name ?? line.speaker
+ return "**\(name)** (\(clock(line.start))) : \(line.text)"
+ }.joined(separator: "\n\n") + "\n"
+ }
+ return out
+ }
+
+ struct MarkdownLabels: Sendable {
+ var summary: String
+ var keyPoints: String
+ var todos: String
+ var transcript: String
+ }
+
+ /// 75 → "1:15", 3725 → "1:02:05".
+ static func clock(_ seconds: Double) -> String {
+ let s = max(0, Int(seconds))
+ if s >= 3600 { return String(format: "%d:%02d:%02d", s / 3600, (s % 3600) / 60, s % 60) }
+ return String(format: "%d:%02d", s / 60, s % 60)
+ }
+
+ /// The transcript as plain text for the summary: "Name: words" per line.
+ static func plainTranscript(_ note: Note) -> String {
+ note.lines.map { line in
+ "\(note.speaker(line.speaker)?.name ?? line.speaker): \(line.text)"
+ }.joined(separator: "\n")
+ }
+
+ // MARK: - Summary
+
+ struct Summary: Sendable, Equatable {
+ var title: String?
+ var summary: String
+ var keyPoints: [String]
+ var todos: [NoteTodo]
+ }
+
+ /// Reads the model's JSON answer ({"title", "summary", "key_points", "todos": [{"text", "owner", "due"}]}),
+ /// even wrapped in a code block or with text around it. nil when there is no JSON in it.
+ static func parseSummary(_ reply: String) -> Summary? {
+ guard let open = reply.firstIndex(of: "{"), let close = reply.lastIndex(of: "}"), open < close,
+ let data = String(reply[open...close]).data(using: .utf8),
+ let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any] else { return nil }
+ let summary = (json["summary"] as? String)?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
+ let points = (json["key_points"] as? [Any] ?? []).compactMap { $0 as? String }.filter { !$0.isEmpty }
+ let todos: [NoteTodo] = (json["todos"] as? [Any] ?? []).compactMap { item in
+ if let text = item as? String, !text.isEmpty { return NoteTodo(text: text) }
+ guard let dict = item as? [String: Any], let text = dict["text"] as? String, !text.isEmpty else { return nil }
+ func field(_ key: String) -> String? {
+ guard let v = dict[key] as? String, !v.isEmpty, v.lowercased() != "null" else { return nil }
+ return v
+ }
+ return NoteTodo(text: text, owner: field("owner"), due: field("due"))
+ }
+ guard !summary.isEmpty || !points.isEmpty || !todos.isEmpty else { return nil }
+ let title = (json["title"] as? String)?.trimmingCharacters(in: .whitespacesAndNewlines)
+ return Summary(title: title?.isEmpty == true ? nil : title, summary: summary, keyPoints: points, todos: todos)
+ }
+}
diff --git a/NotchBuddy/Sources/App/NoteTaker.swift b/NotchBuddy/Sources/App/NoteTaker.swift
new file mode 100644
index 00000000..6744515f
--- /dev/null
+++ b/NotchBuddy/Sources/App/NoteTaker.swift
@@ -0,0 +1,464 @@
+#if !APPSTORE
+import AppKit
+import AVFoundation
+@preconcurrency import FluidAudio
+import UniformTypeIdentifiers
+#if canImport(FoundationModels)
+import FoundationModels
+#endif
+
+/// Who writes the summary of a call.
+enum NoteSummaryEngine: String, CaseIterable, Identifiable {
+ /// The Claude key of Settings → Chat (the transcript goes to Anthropic).
+ case claude
+ /// Apple Intelligence, on the Mac (macOS 26).
+ case apple
+ case off
+
+ var id: String { rawValue }
+
+ var label: String {
+ switch self {
+ case .claude: return String(localized: "notes.engine.claude")
+ case .apple: return String(localized: "notes.engine.apple")
+ case .off: return String(localized: "notes.engine.off")
+ }
+ }
+}
+
+/// The Notetaker: records a call (your microphone, and what the Mac plays for the other people),
+/// shows a live transcript, then writes the whole transcript person by person with Parakeet and
+/// FluidAudio's diarizer, and a summary with the to-dos. Everything is stored in
+/// Application Support/NotchBuddy/Notes; the audio is deleted once the transcript is written.
+/// No bot joins the call: the other people should be told it is recorded.
+@MainActor
+final class NoteTaker: ObservableObject {
+ static let shared = NoteTaker()
+
+ /// Newest first.
+ @Published private(set) var notes: [Note] = []
+ /// The note being recorded, with its live lines.
+ @Published private(set) var recording: Note?
+ @Published private(set) var micLevel: Float = 0
+ @Published private(set) var systemLevel: Float = 0
+ /// What went wrong when a recording could not start.
+ @Published var startError: String?
+ /// Notes whose transcript or summary is being written.
+ @Published private(set) var working: Set<UUID> = []
+
+ @Published var summaryEngine: NoteSummaryEngine {
+ didSet { UserDefaults.standard.set(summaryEngine.rawValue, forKey: Self.engineKey) }
+ }
+
+ static let engineKey = "noteSummaryEngine"
+
+ private var mic: MicCapture?
+ private var tap: SystemAudioTap?
+ private var micChannel: ChannelRecorder?
+ private var systemChannel: ChannelRecorder?
+ private var liveTask: Task<Void, Never>?
+
+ static var folder: URL { HookServer.supportDir.appendingPathComponent("Notes", isDirectory: true) }
+
+ private init() {
+ if let saved = UserDefaults.standard.string(forKey: Self.engineKey), let engine = NoteSummaryEngine(rawValue: saved) {
+ summaryEngine = engine
+ } else {
+ summaryEngine = FlowCleanup.hasKey ? .claude : (Self.appleModelAvailable ? .apple : .off)
+ }
+ load()
+ }
+
+ var isRecording: Bool { recording != nil }
+
+ // MARK: - Recording
+
+ func start() async {
+ guard recording == nil else { return }
+ startError = nil
+ guard Parakeet.shared.isReady else {
+ startError = String(localized: "notes.error.models")
+ return
+ }
+ guard await AVAudioApplication.requestRecordPermission() else {
+ startError = String(localized: "notes.error.mic")
+ return
+ }
+ let now = Date()
+ var note = Note(title: String(format: String(localized: "notes.default-title %@"),
+ now.formatted(.dateTime.day().month(.abbreviated).hour().minute())),
+ start: now)
+ note.app = NSWorkspace.shared.frontmostApplication?.localizedName
+ let dir = Self.folder(for: note.id)
+ do {
+ try FileManager.default.createDirectory(at: dir, withIntermediateDirectories: true)
+ let micChannel = try ChannelRecorder(url: dir.appendingPathComponent("mic.wav"), label: "fr.louisraille.NotchBuddy.notetaker.mic")
+ let systemChannel = try ChannelRecorder(url: dir.appendingPathComponent("system.wav"), label: "fr.louisraille.NotchBuddy.notetaker.sys")
+ let mic = MicCapture()
+ guard mic.start(sink: { micChannel.append($0) }) else {
+ startError = String(localized: "notes.error.mic")
+ try? FileManager.default.removeItem(at: dir)
+ return
+ }
+ let tap = SystemAudioTap()
+ do {
+ try tap.start(sink: { systemChannel.append($0) })
+ self.tap = tap
+ self.systemChannel = systemChannel
+ } catch {
+ // Without the Mac's sound, the call is noted from the microphone alone.
+ appendAppLog("nb.log", "[Notetaker] system audio unavailable: \(error.localizedDescription)")
+ self.tap = nil
+ self.systemChannel = nil
+ }
+ self.mic = mic
+ self.micChannel = micChannel
+ } catch {
+ startError = error.localizedDescription
+ return
+ }
+ recording = note
+ notes.insert(note, at: 0)
+ save(note)
+ FlowDictation.shared.pill.setNote(note.start)
+ SoundEngine.shared.play("blip")
+ startLiveLoop()
+ }
+
+ func stop() {
+ guard var note = recording else { return }
+ liveTask?.cancel()
+ liveTask = nil
+ mic?.stop()
+ tap?.stop()
+ mic = nil
+ tap = nil
+ let micChannel = self.micChannel, systemChannel = self.systemChannel
+ self.micChannel = nil
+ self.systemChannel = nil
+ micLevel = 0
+ systemLevel = 0
+ note.end = Date()
+ note.status = .processing
+ recording = nil
+ replace(note)
+ FlowDictation.shared.pill.setNote(nil)
+ Task { @MainActor in
+ await micChannel?.close()
+ await systemChannel?.close()
+ await self.process(note.id)
+ }
+ }
+
+ /// Every second while recording: the levels, and the stretches ending on a pause go to Parakeet
+ /// for the live transcript (the final one is written again from the whole recording).
+ private func startLiveLoop() {
+ liveTask = Task { @MainActor [weak self] in
+ while !Task.isCancelled {
+ try? await Task.sleep(for: .seconds(1))
+ guard let self, self.recording != nil else { return }
+ self.micLevel = self.micChannel?.level ?? 0
+ self.systemLevel = self.systemChannel?.level ?? 0
+ for (channel, speaker) in [(self.micChannel, NoteBuilder.meID), (self.systemChannel, "others")] {
+ guard let channel, let chunk = channel.takeChunk() else { continue }
+ guard let text = try? await Parakeet.shared.transcribe(chunk.samples),
+ !text.trimmingCharacters(in: .whitespaces).isEmpty,
+ var note = self.recording else { continue }
+ let end = chunk.start + Double(chunk.samples.count) / ChannelRecorder.sampleRate
+ note.lines.append(NoteLine(speaker: speaker, start: chunk.start, end: end, text: text))
+ note.lines.sort { $0.start < $1.start }
+ self.recording = note
+ }
+ }
+ }
+ }
+
+ // MARK: - Transcript
+
+ /// Writes the transcript from the recordings, then the summary, then deletes the audio.
+ func process(_ id: UUID) async {
+ guard var note = self.note(id), !working.contains(id) else { return }
+ working.insert(id)
+ defer { working.remove(id) }
+ let dir = Self.folder(for: id)
+ let micURL = dir.appendingPathComponent("mic.wav")
+ let systemURL = dir.appendingPathComponent("system.wav")
+ let me = String(localized: "notes.me")
+ do {
+ guard FileManager.default.fileExists(atPath: micURL.path) else {
+ throw NSError(domain: "Notetaker", code: 1, userInfo: [NSLocalizedDescriptionKey: String(localized: "notes.error.no-audio")])
+ }
+ let asr = try await Parakeet.shared.manager()
+ let mine = try await Self.words(in: micURL, asr: asr)
+ var theirs: [TimedWord] = []
+ if FileManager.default.fileExists(atPath: systemURL.path) {
+ theirs = try await Self.words(in: systemURL, asr: asr)
+ }
+ let built: (speakers: [NoteSpeaker], lines: [NoteLine])
+ if theirs.count >= 5 {
+ // A call: you on the microphone, the others on the Mac's sound.
+ let turns = try await Self.diarize(systemURL)
+ built = NoteBuilder.build(mine: mine, others: theirs, turns: turns, meName: me, personName: Self.personName)
+ } else if mine.count >= 20 {
+ // People around the Mac: one recording, the voices told apart.
+ let turns = try await Self.diarize(micURL)
+ if Set(turns.map(\.speaker)).count > 1 {
+ built = NoteBuilder.buildRoom(words: mine, turns: turns, personName: Self.personName)
+ } else {
+ built = NoteBuilder.build(mine: mine, others: [], turns: [], meName: me, personName: Self.personName)
+ }
+ } else {
+ built = NoteBuilder.build(mine: mine, others: theirs, turns: [], meName: me, personName: Self.personName)
+ }
+ note.speakers = built.speakers
+ note.lines = built.lines
+ note.status = .ready
+ note.error = nil
+ replace(note)
+ try? FileManager.default.removeItem(at: micURL)
+ try? FileManager.default.removeItem(at: systemURL)
+ appendAppLog("nb.log", "[Notetaker] transcript: \(note.lines.count) lines, \(note.speakers.count) speakers")
+ } catch {
+ appendAppLog("nb.log", "[Notetaker] transcript failed: \(error.localizedDescription)")
+ note.status = .failed
+ note.error = error.localizedDescription
+ replace(note)
+ return
+ }
+ if summaryEngine != .off, !note.lines.isEmpty {
+ await summarize(id)
+ }
+ }
+
+ nonisolated static func personName(_ number: Int) -> String {
+ String(format: String(localized: "notes.person %lld"), number)
+ }
+
+ /// Whether the recordings of a note are still there (a failed note can be tried again).
+ func hasAudio(_ id: UUID) -> Bool {
+ FileManager.default.fileExists(atPath: Self.folder(for: id).appendingPathComponent("mic.wav").path)
+ }
+
+ nonisolated private static func words(in url: URL, asr: AsrManager) async throws -> [TimedWord] {
+ var decoder = TdtDecoderState.make(decoderLayers: await asr.decoderLayerCount)
+ let result: ASRResult
+ do {
+ result = try await asr.transcribe(url, decoderState: &decoder)
+ } catch ASRError.invalidAudioData {
+ return [] // too short to hold words
+ }
+ return buildWordTimings(from: result.tokenTimings ?? []).map {
+ TimedWord(text: $0.word, start: $0.startTime, end: $0.endTime)
+ }
+ }
+
+ nonisolated private static func diarize(_ url: URL) async throws -> [SpeakerTurn] {
+ let diarizer = OfflineDiarizerManager()
+ try await diarizer.prepareModels(directory: Parakeet.modelsRoot)
+ let result = try await diarizer.process(url)
+ return result.segments.map {
+ SpeakerTurn(speaker: $0.speakerId, start: Double($0.startTimeSeconds), end: Double($0.endTimeSeconds))
+ }
+ }
+
+ // MARK: - Summary
+
+ static var appleModelAvailable: Bool {
+ #if canImport(FoundationModels)
+ if #available(macOS 26, *) { return SystemLanguageModel.default.availability == .available }
+ #endif
+ return false
+ }
+
+ /// Writes (or writes again) the summary, key points and to-dos of a note.
+ func summarize(_ id: UUID) async {
+ guard let note = self.note(id), !note.lines.isEmpty else { return }
+ working.insert(id)
+ defer { working.remove(id) }
+ let transcript = NoteBuilder.plainTranscript(note)
+ let reply: String?
+ switch summaryEngine {
+ case .claude:
+ let key = KeychainStore.shared.get("anthropic-api-key") ?? ""
+ let model = AppState.shared.claudeModel.isEmpty ? AppState.defaultClaudeModel : AppState.shared.claudeModel
+ reply = key.isEmpty ? nil : await Self.claudeSummary(transcript, key: key, model: model)
+ case .apple:
+ reply = await Self.appleSummary(transcript)
+ case .off:
+ reply = nil
+ }
+ guard let reply, var current = self.note(id) else { return }
+ if let parsed = NoteBuilder.parseSummary(reply) {
+ if let title = parsed.title, current.titleEdited != true { current.title = title }
+ current.summary = parsed.summary
+ current.keyPoints = parsed.keyPoints
+ current.todos = parsed.todos
+ } else {
+ current.summary = reply.trimmingCharacters(in: .whitespacesAndNewlines)
+ }
+ replace(current)
+ }
+
+ nonisolated static let summaryInstructions = """
+ You write the notes of a meeting from its transcript. Each line is "Name: words".
+ Write in the language of the transcript. Invent nothing that was not said.
+ Reply ONLY with JSON, no code block, in this exact shape:
+ {"title": "a short title, 6 words at most", "summary": "2 to 4 sentences: what was decided and why", \
+ "key_points": ["up to 6 short points"], "todos": [{"text": "the task", "owner": "the person's name as written in the transcript, or null", "due": "the deadline as said, or null"}]}
+ """
+
+ nonisolated private static func claudeSummary(_ transcript: String, key: String, model: String) async -> String? {
+ func call(_ model: String) async -> String? {
+ var request = URLRequest(url: URL(string: "https://api.anthropic.com/v1/messages")!)
+ request.httpMethod = "POST"
+ request.timeoutInterval = 120
+ request.setValue(key, forHTTPHeaderField: "x-api-key")
+ request.setValue("2023-06-01", forHTTPHeaderField: "anthropic-version")
+ request.setValue("application/json", forHTTPHeaderField: "content-type")
+ let body: [String: Any] = [
+ "model": model,
+ "max_tokens": 2048,
+ "system": summaryInstructions,
+ "messages": [["role": "user", "content": "<transcript>\n\(transcript.prefix(400_000))\n</transcript>"]],
+ ]
+ guard let data = try? JSONSerialization.data(withJSONObject: body) else { return nil }
+ request.httpBody = data
+ guard let result = try? await URLSession.shared.data(for: request),
+ (result.1 as? HTTPURLResponse)?.statusCode == 200,
+ let json = try? JSONSerialization.jsonObject(with: result.0) as? [String: Any],
+ let content = json["content"] as? [[String: Any]] else { return nil }
+ let text = content.compactMap { $0["text"] as? String }.joined()
+ return text.isEmpty ? nil : text
+ }
+ if let text = await call(model) { return text }
+ return await call(FlowCleanup.model)
+ }
+
+ /// Apple's on-device model has a small context: a long call is first noted in parts, then the
+ /// notes of the parts are summarized.
+ nonisolated private static func appleSummary(_ transcript: String) async -> String? {
+ #if canImport(FoundationModels)
+ if #available(macOS 26, *) {
+ guard SystemLanguageModel.default.availability == .available else { return nil }
+ let words = transcript.split(separator: " ")
+ var material = transcript
+ if words.count > 1_800 {
+ var notes: [String] = []
+ var index = 0
+ while index < words.count {
+ let part = words[index..<min(words.count, index + 1_500)].joined(separator: " ")
+ index += 1_500
+ let session = LanguageModelSession(instructions: "Write short notes of this part of a meeting transcript: who said what, decisions, tasks. Keep the transcript's language and the people's names. Invent nothing.")
+ if let answer = try? await session.respond(to: part).content { notes.append(answer) }
+ }
+ material = notes.joined(separator: "\n\n")
+ }
+ let session = LanguageModelSession(instructions: summaryInstructions)
+ return try? await session.respond(to: material).content
+ }
+ #endif
+ return nil
+ }
+
+ // MARK: - Editing
+
+ func note(_ id: UUID) -> Note? {
+ if recording?.id == id { return recording }
+ return notes.first { $0.id == id }
+ }
+
+ func rename(_ id: UUID, title: String) {
+ guard var note = self.note(id) else { return }
+ let t = title.trimmingCharacters(in: .whitespacesAndNewlines)
+ guard !t.isEmpty, t != note.title else { return }
+ note.title = t
+ note.titleEdited = true
+ replace(note)
+ }
+
+ func rename(_ id: UUID, speaker: String, to name: String) {
+ guard var note = self.note(id), let index = note.speakers.firstIndex(where: { $0.id == speaker }) else { return }
+ let n = name.trimmingCharacters(in: .whitespacesAndNewlines)
+ guard !n.isEmpty else { return }
+ note.speakers[index].name = n
+ replace(note)
+ }
+
+ func toggle(_ id: UUID, todo: UUID) {
+ guard var note = self.note(id), let index = note.todos.firstIndex(where: { $0.id == todo }) else { return }
+ note.todos[index].done.toggle()
+ replace(note)
+ }
+
+ func delete(_ id: UUID) {
+ guard recording?.id != id else { return }
+ notes.removeAll { $0.id == id }
+ try? FileManager.default.removeItem(at: Self.folder(for: id))
+ }
+
+ func markdown(_ note: Note) -> String {
+ NoteBuilder.markdown(note, labels: .init(summary: String(localized: "notes.summary"),
+ keyPoints: String(localized: "notes.key-points"),
+ todos: String(localized: "notes.todos"),
+ transcript: String(localized: "notes.transcript")))
+ }
+
+ /// Asks where to save the note as a Markdown file.
+ func export(_ note: Note) {
+ let panel = NSSavePanel()
+ panel.nameFieldStringValue = note.title.replacingOccurrences(of: "/", with: "-") + ".md"
+ panel.allowedContentTypes = [.init(filenameExtension: "md") ?? .plainText]
+ guard panel.runModal() == .OK, let url = panel.url else { return }
+ try? markdown(note).write(to: url, atomically: true, encoding: .utf8)
+ }
+
+ // MARK: - Files
+
+ static func folder(for id: UUID) -> URL { folder.appendingPathComponent(id.uuidString, isDirectory: true) }
+
+ private func replace(_ note: Note) {
+ if let index = notes.firstIndex(where: { $0.id == note.id }) { notes[index] = note } else { notes.insert(note, at: 0) }
+ save(note)
+ }
+
+ private func save(_ note: Note) {
+ do {
+ let dir = Self.folder(for: note.id)
+ try FileManager.default.createDirectory(at: dir, withIntermediateDirectories: true)
+ let encoder = JSONEncoder()
+ encoder.dateEncodingStrategy = .iso8601
+ encoder.outputFormatting = [.prettyPrinted]
+ try encoder.encode(note).write(to: dir.appendingPathComponent("note.json"), options: .atomic)
+ } catch {
+ appendAppLog("nb.log", "[Notetaker] could not save a note: \(error.localizedDescription)")
+ }
+ }
+
+ private func load() {
+ guard let dirs = try? FileManager.default.contentsOfDirectory(at: Self.folder, includingPropertiesForKeys: nil) else { return }
+ let decoder = JSONDecoder()
+ decoder.dateDecodingStrategy = .iso8601
+ var loaded: [Note] = []
+ for dir in dirs {
+ guard let data = try? Data(contentsOf: dir.appendingPathComponent("note.json")),
+ var note = try? decoder.decode(Note.self, from: data) else { continue }
+ // Coucou quit while recording or writing: the transcript is written again from the audio.
+ if note.status == .recording || note.status == .processing {
+ note.end = note.end ?? (try? dir.appendingPathComponent("mic.wav").resourceValues(forKeys: [.contentModificationDateKey]))?.contentModificationDate
+ note.status = .processing
+ }
+ loaded.append(note)
+ }
+ notes = loaded.sorted { $0.start > $1.start }
+ let pending = notes.filter { $0.status == .processing }.map(\.id)
+ if !pending.isEmpty {
+ Task { @MainActor in
+ // Parakeet loads in the background; then the unfinished notes are written.
+ for id in pending {
+ if Parakeet.shared.isReady { await self.process(id) }
+ }
+ }
+ }
+ }
+}
+#endif
diff --git a/NotchBuddy/project.yml b/NotchBuddy/project.yml
index c36114d6..26d68f75 100644
--- a/NotchBuddy/project.yml
+++ b/NotchBuddy/project.yml
@@ -144,7 +144,8 @@ targets:
NSHighResolutionCapable: YES
NSSupportsAutomaticGraphicsSwitching: YES
NSAppleEventsUsageDescription: "Pour sauter au terminal, envoyer des mails et piloter Musique et Spotify."
- NSMicrophoneUsageDescription: "Coucou uses the microphone when you dictate a message in the chat."
+ NSMicrophoneUsageDescription: "Coucou uses the microphone when you dictate, and to note your calls when you ask it to."
+ NSAudioCaptureUsageDescription: "Coucou records what your Mac plays only while you note a call, to write down what the other people say."
NSSpeechRecognitionUsageDescription: "Coucou turns your voice into the text of a chat message."
NSAccessibilityUsageDescription: "Pour lire le titre de la fenêtre active et l'attacher comme contexte."
NSContactsUsageDescription: "Coucou looks up an email address when you ask it, by voice, to prepare an email."
diff --git a/scripts/test-notetaker.sh b/scripts/test-notetaker.sh
new file mode 100755
index 00000000..ed61427b
--- /dev/null
+++ b/scripts/test-notetaker.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd "$(dirname "$0")/.."
+TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-notetaker.XXXXXX")"
+trap 'rm -rf "$TEST_DIR"' EXIT
+swiftc NotchBuddy/Sources/App/NoteModels.swift tests/NoteModelsTests.swift -o "$TEST_DIR/notetaker-tests"
+"$TEST_DIR/notetaker-tests"
diff --git a/tests/NoteModelsTests.swift b/tests/NoteModelsTests.swift
new file mode 100644
index 00000000..5e86eeb9
--- /dev/null
+++ b/tests/NoteModelsTests.swift
@@ -0,0 +1,104 @@
+import Foundation
+
+@main
+enum NoteModelsTests {
+
+ static var failures = 0
+
+ static func check(_ label: String, _ got: Bool) {
+ if got { print(" ✓ \(label)") }
+ else { print(" ✗ \(label)"); failures += 1 }
+ }
+
+ static func words(_ text: String, from start: Double, step: Double = 0.4) -> [TimedWord] {
+ text.split(separator: " ").enumerated().map { i, w in
+ TimedWord(text: String(w), start: start + Double(i) * step, end: start + Double(i) * step + 0.3)
+ }
+ }
+
+ static func main() {
+ let person = { (n: Int) in "Personne \(n)" }
+
+ print("\nA call: me on the mic, two people on the Mac's sound")
+ do {
+ let mine = words("Salut tout le monde", from: 0) + words("Oui je l'envoie vendredi", from: 9)
+ let theirs = words("Bonjour Louis", from: 2.5) + words("Tu nous envoies la maquette", from: 5)
+ + words("Parfait merci", from: 12)
+ let turns = [SpeakerTurn(speaker: "S1", start: 2.4, end: 3.5),
+ SpeakerTurn(speaker: "S2", start: 4.9, end: 7.2),
+ SpeakerTurn(speaker: "S1", start: 11.9, end: 13)]
+ let built = NoteBuilder.build(mine: mine, others: theirs, turns: turns, meName: "Moi", personName: person)
+ check("three speakers", built.speakers.map(\.name) == ["Moi", "Personne 2", "Personne 3"])
+ check("five lines in time order", built.lines.map(\.text) == [
+ "Salut tout le monde", "Bonjour Louis", "Tu nous envoies la maquette", "Oui je l'envoie vendredi", "Parfait merci"])
+ check("the same voice keeps its name", built.lines[1].speaker == built.lines[4].speaker)
+ check("me first", built.lines[0].speaker == NoteBuilder.meID)
+ }
+
+ print("\nEcho: the others' voices heard again by the mic")
+ do {
+ let mine = words("Tu nous envoies la maquette", from: 5.1) + words("Oui bien sûr", from: 9)
+ let theirs = words("Tu nous envoies la maquette", from: 5)
+ let built = NoteBuilder.build(mine: mine, others: theirs, turns: [SpeakerTurn(speaker: "A", start: 4, end: 8)],
+ meName: "Moi", personName: person)
+ check("the echo is gone", built.lines.filter { $0.speaker == NoteBuilder.meID }.map(\.text) == ["Oui bien sûr"])
+ check("the other line stays", built.lines.contains { $0.text == "Tu nous envoies la maquette" && $0.speaker != NoteBuilder.meID })
+ }
+
+ print("\nLines")
+ do {
+ let ws = words("un deux", from: 0) + words("trois", from: 3)
+ let lines = NoteBuilder.lines(from: ws.map { (speaker: "me", word: $0) })
+ check("a pause starts a new line", lines.map(\.text) == ["un deux", "trois"])
+ let far = NoteBuilder.assign(words("loin", from: 50), to: [SpeakerTurn(speaker: "A", start: 0, end: 1)], fallback: "x")
+ check("a word far from every voice goes to the fallback", far.first?.speaker == "x")
+ }
+
+ print("\nAround the Mac: one recording, several voices")
+ do {
+ let ws = words("on commence", from: 0) + words("d'accord", from: 3)
+ let built = NoteBuilder.buildRoom(words: ws, turns: [SpeakerTurn(speaker: "A", start: 0, end: 1.5),
+ SpeakerTurn(speaker: "B", start: 2.8, end: 4)],
+ personName: person)
+ check("Personne 1 and Personne 2", built.speakers.map(\.name) == ["Personne 1", "Personne 2"])
+ }
+
+ print("\nSummary")
+ do {
+ let reply = """
+ Voici :
+ ```json
+ {"title": "Point plateforme", "summary": "Renaud valide.", "key_points": ["Budget d'avril"],
+ "todos": [{"text": "Envoyer la maquette", "owner": "Moi", "due": "vendredi"}, {"text": "Liste des pages", "owner": null, "due": "null"}]}
+ ```
+ """
+ let s = NoteBuilder.parseSummary(reply)
+ check("parsed", s != nil)
+ check("title", s?.title == "Point plateforme")
+ check("two to-dos", s?.todos.count == 2)
+ check("owner and due", s?.todos.first?.owner == "Moi" && s?.todos.first?.due == "vendredi")
+ check("null is no owner", s?.todos.last?.owner == nil && s?.todos.last?.due == nil)
+ check("no JSON, no summary", NoteBuilder.parseSummary("Désolé") == nil)
+ }
+
+ print("\nMarkdown")
+ do {
+ var note = Note(title: "Point", start: Date(timeIntervalSince1970: 1_800_000_000))
+ note.end = note.start.addingTimeInterval(600)
+ note.speakers = [NoteSpeaker(id: "me", name: "Moi", color: 0, isMe: true)]
+ note.lines = [NoteLine(speaker: "me", start: 75, end: 78, text: "Salut")]
+ note.todos = [NoteTodo(text: "Envoyer", owner: "Moi", due: nil, done: true)]
+ let md = NoteBuilder.markdown(note, labels: .init(summary: "Résumé", keyPoints: "Points", todos: "À faire", transcript: "Transcription"))
+ check("title", md.hasPrefix("# Point\n"))
+ check("done to-do", md.contains("- [x] Envoyer (Moi)"))
+ check("transcript line", md.contains("**Moi** (1:15) : Salut"))
+ check("clock with hours", NoteBuilder.clock(3725) == "1:02:05")
+ }
+
+ if failures > 0 {
+ print("\n\(failures) failure(s)")
+ exit(1)
+ }
+ print("\nAll Notetaker tests passed")
+ }
+}