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
Recording (Windows): the call is recorded from the whole output by default; every-app-except-Yogurt capture heard nothing of the new Teams on some computers (#35)
christianmatff38a76649e8
diff --git a/.github/workflows/native-windows-audio.yml b/.github/workflows/native-windows-audio.ymlindex 6b7e3b78..0dff1e37 100644--- a/.github/workflows/native-windows-audio.yml+++ b/.github/workflows/native-windows-audio.yml@@ -89,14 +89,16 @@ jobs:$p = Start-Process powershell -PassThru -WindowStyle Hidden -ArgumentList '-NoProfile', '-Command', "(New-Object Media.SoundPlayer '$env:RUNNER_TEMP/tone.wav').PlaySync()"Start-Sleep 2try { node smoke/smoke.mjs target/release/yogurt-audio.exe live } finally { Stop-Process -Id $p.Id -ErrorAction SilentlyContinue }- - name: Smoke test, the whole-output fallback (Windows before 10 2004)+ - name: Smoke test, process loopback when asked for (every app except Yogurt)env:- YOGURT_AUDIO_LOOPBACK: endpoint+ YOGURT_AUDIO_LOOPBACK: processrun: |$p = Start-Process powershell -PassThru -WindowStyle Hidden -ArgumentList '-NoProfile', '-Command', "(New-Object Media.SoundPlayer '$env:RUNNER_TEMP/tone.wav').PlaySync()"Start-Sleep 2try { node smoke/smoke.mjs target/release/yogurt-audio.exe live } finally { Stop-Process -Id $p.Id -ErrorAction SilentlyContinue }- - name: Smoke test, Yogurt's own sound left out+ - name: Smoke test, Yogurt's own sound left out (process loopback)+ env:+ YOGURT_AUDIO_LOOPBACK: processrun: node smoke/smoke.mjs target/release/yogurt-audio.exe excluded- name: Smoke test, devices presentrun: node smoke/smoke.mjs target/release/yogurt-audio.exe basicdiff --git a/app/native/yogurt-audio-win/smoke/smoke.mjs b/app/native/yogurt-audio-win/smoke/smoke.mjsindex d178655f..7a77fa0a 100644--- a/app/native/yogurt-audio-win/smoke/smoke.mjs+++ b/app/native/yogurt-audio-win/smoke/smoke.mjs@@ -176,8 +176,8 @@ async function live(excluded) {const loud = (track) => res.frames.filter((f) => f.t === 'pcm' && f.track === track && f.rms > 0.02).lengthconst processLoopback = /every app except Yogurt/.test(res.stderr)console.log(`system audio mode: ${processLoopback ? 'process loopback' : 'whole output'}; loud frames me ${loud('me')}, them ${loud('them')}`)- if (process.env.YOGURT_AUDIO_LOOPBACK === 'endpoint') check(/the whole output/.test(res.stderr), 'the fallback records the whole output')- else check(processLoopback, 'process loopback starts on this Windows')+ if (process.env.YOGURT_AUDIO_LOOPBACK === 'process') check(processLoopback, 'process loopback starts when asked for')+ else check(/the whole output/.test(res.stderr), 'the whole output is recorded by default (#35)')if (excluded && processLoopback) check(loud('them') <= 2, "Yogurt's own sound is left out of them", `${loud('them')} loud frames`)else check(loud('them') >= 30, 'them hears the computer\'s sound', `${loud('them')} loud frames`)check(res.frames.some((f) => f.t === 'level' && f.them > 0.3) === !(excluded && processLoopback), 'them levels follow the sound')diff --git a/app/native/yogurt-audio-win/src/main.rs b/app/native/yogurt-audio-win/src/main.rsindex 82218f00..22942698 100644--- a/app/native/yogurt-audio-win/src/main.rs+++ b/app/native/yogurt-audio-win/src/main.rs@@ -1,6 +1,6 @@// Yogurt's recorder on Windows, speaking the same protocol as the Mac's (native/yogurt-audio/main.swift): the microphone// (WASAPI shared mode, no communications role, so the call app keeps its mic as it was) and the computer's sound-// (process loopback on every app except Yogurt, Windows 10 2004+; the whole output where that can't start).+// (the whole default output; process loopback, every app except Yogurt, on YOGURT_AUDIO_LOOPBACK=process: it missed Teams, #35).// yogurt-audio record --dir DIR [--part N --start-ms X] [--mic ID] [--speech LOCALE]// yogurt-audio join --dir DIR | inspect --dir DIR | mic-devices | speech-locales | speech-install LOCALE// Writes DIR/me.ogg and DIR/them.ogg (Opus 20 kb/s mono, 48 kHz), a page a second so a crash keeps what was recorded.diff --git a/app/native/yogurt-audio-win/src/win/mod.rs b/app/native/yogurt-audio-win/src/win/mod.rsindex b2d67ca3..48848aa5 100644--- a/app/native/yogurt-audio-win/src/win/mod.rs+++ b/app/native/yogurt-audio-win/src/win/mod.rs@@ -341,16 +341,19 @@ pub fn start_mic(uid: Option<String>, tx: Sender<Ev>) -> Result<Stream, StartErr)}-/// The computer's sound. Process loopback (Windows 10 2004 and newer) records every app except Yogurt: the app that-/// started this helper and everything it started. Where that can't start, the whole output is recorded, Yogurt included.+/// The computer's sound: the whole default output, Yogurt's own sound included (Yogurt plays nothing while recording+/// unless asked). Process loopback, every app except Yogurt (Windows 10 2004 and newer), only on YOGURT_AUDIO_LOOPBACK=process:+/// it heard nothing of Teams on some computers (#35).pub fn start_system(tx: Sender<Ev>, clock: Clock) -> Result<Stream, StartError> {let lost_tx = tx.clone();let mut gap = GapFiller::new(clock.now_ms());spawn(move || {let parent = parent_pid();- // YOGURT_AUDIO_LOOPBACK=endpoint: the fallback on purpose (CI tests it)- if parent != 0 && std::env::var("YOGURT_AUDIO_LOOPBACK").as_deref() != Ok("endpoint") {+ // The whole output by default: process loopback ("every app except Yogurt") heard nothing of the new Teams+ // on the very device it played to (#35, a Jabra headset as the default output). YOGURT_AUDIO_LOOPBACK=process+ // still asks for it (CI tests both).+ if parent != 0 && std::env::var("YOGURT_AUDIO_LOOPBACK").as_deref() == Ok("process") {match process_loopback(parent) {Ok(client) => match initialize(&client, true) {Ok(ch) => {