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
import { execFileSync } from 'node:child_process'
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join, resolve } from 'node:path'
import { pathToFileURL } from 'node:url'
import { expect, it } from 'vitest'
// The release build runs the speech engine's sources in plain Node (scripts/whisper-smoke.mjs,
// scripts/speed-check-smoke.mjs). Anything they import must load without the bundler: one import of the
// translations (import.meta.glob) there stopped the 0.3.85 Windows and Linux builds.
// Parakeet's logic and the transcriber come in through both; the picker's speed rules are loaded by the speed check's smoke script itself
const LOADED_BY_SMOKE = ['src/main/asr/server.ts', 'src/main/asr/speedCheck.ts', 'src/main/asr/transcribe.ts', 'src/main/asr/parakeet.ts', '../packages/picker/src/asr.ts']
it.each(LOADED_BY_SMOKE)('%s loads in plain Node, as the release smoke tests load it', (file) => {
const dir = mkdtempSync(join(tmpdir(), 'yogurt-plain-node-'))
try {
const script = join(dir, 'load.mjs')
writeFileSync(script, `import { registerHooks } from 'node:module'
registerHooks({ resolve(spec, ctx, next) { try { return next(spec, ctx) } catch (e) { if (spec.startsWith('.')) return next(spec + '.ts', ctx); throw e } } })
await import(process.argv[2])
console.log('loaded')
`)
const out = execFileSync(process.execPath, [script, pathToFileURL(resolve(file)).href], { encoding: 'utf8', env: { ...process.env, NODE_OPTIONS: '' } })
expect(out).toContain('loaded')
} finally { rmSync(dir, { recursive: true, force: true }) }
}, 60_000)