Files
coucou/scripts/test-notetaker.sh
Claude c6276017a6 Notetaker: remove the echo by the sound, merge a voice cut in two, correct misheard words
- Both recordings share one clock: the Mac's sound starts with the silence it missed.
- Echo: the Mac's sound is the reference; a microphone word with no more energy than
  its echo is the others'. Plus a word-level check for runs of their words.
- A speaker heard only in short bits goes back to the closest real voice.
- Claude corrects the transcript before the summary (checked, raw kept) and names
  people when the call says who they are.
- Fix a line, reassign it or delete it; corrected words are learnt for the next calls.
- Renaming a speaker with another's name merges them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-15 20:44:39 +02:00

8 lines
331 B
Bash
Executable File

#!/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 NotchBuddy/Sources/App/NoteEcho.swift tests/NoteModelsTests.swift -o "$TEST_DIR/notetaker-tests"
"$TEST_DIR/notetaker-tests"