Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Notes read ahead during a recording only on Macs, as intended: off a Mac it shared the graphics card with whisper for the whole call (#37)
christianmatb83322f23954
diff --git a/app/src/main/notes/readAhead.ts b/app/src/main/notes/readAhead.tsindex fe151598..7e693da5 100644--- a/app/src/main/notes/readAhead.ts+++ b/app/src/main/notes/readAhead.ts@@ -16,8 +16,12 @@ import { cutTurn, languageName, partBudget, reusable, summaryHead, summaryPrompt* a prompt that differs from what was read only reads more.*/-/** The model and whisper together during a meeting: only with room to spare (24 GB keeps the old way) */-export const readAheadAllowed = (totalBytes: number): boolean => totalBytes >= 32 * 2 ** 30+/**+ * The model and whisper together during a meeting: only on a Mac with room to spare (24 GB keeps the old way). Off a+ * Mac they would share the graphics card's own memory, which the notes model mostly fills: a long call then ran the+ * card flat out and could freeze the computer (#37).+ */+export const readAheadAllowed = (totalBytes: number, platform: string = process.platform): boolean => platform === 'darwin' && totalBytes >= 32 * 2 ** 30/** read in once this much more transcript has settled */export const READ_EVERY_MS = 3 * 60_000diff --git a/app/test/readAhead.test.ts b/app/test/readAhead.test.tsindex b6f35550..826f2cc6 100644--- a/app/test/readAhead.test.ts+++ b/app/test/readAhead.test.ts@@ -32,9 +32,12 @@ describe('stableTurns: what of the transcript will not change any more', () => {describe('readAheadAllowed', () => {it('only on Macs with 32 GB or more: 24 GB keeps the model out of the way while recording', () => {- expect(readAheadAllowed(24 * 2 ** 30)).toBe(false)- expect(readAheadAllowed(32 * 2 ** 30)).toBe(true)- expect(readAheadAllowed(64 * 2 ** 30)).toBe(true)+ expect(readAheadAllowed(24 * 2 ** 30, 'darwin')).toBe(false)+ expect(readAheadAllowed(32 * 2 ** 30, 'darwin')).toBe(true)+ expect(readAheadAllowed(64 * 2 ** 30, 'darwin')).toBe(true)+ })+ it('never on Windows or Linux, however much memory: there the model and whisper share a graphics card of its own (#37)', () => {+ for (const platform of ['win32', 'linux']) expect(readAheadAllowed(64 * 2 ** 30, platform)).toBe(false)})})