Skip to content

Meeting notes

!record (or /record) in any bot channel records the voice channel you are in. When it stops, the bot wakes a Windows PC, has it transcribe the audio with whisper.cpp, posts the transcript in MEETING_NOTES_CHANNEL and lets Claude write a summary in a thread. Only the summary uses tokens.

  1. Record. The bot joins the voice channel muted and announces the recording in the channel’s chat. Every person is recorded separately, one clip per utterance (<user id>-<ms since start>.ogg), so the transcript gets names and timestamps without speaker detection. Stop with !record stop; it also stops a minute after everyone leaves, after MEETING_MAX_MINUTES, or before a bot restart.
  2. Prepare. The clips are converted to 16 kHz mono WAV on the Pi (ffmpeg), so the PC needs no ffmpeg. Clips under 0.6 s are dropped.
  3. Wake. If the PC does not answer on the SSH port, the bot asks the Pi host to wake it (TRANSCRIBER_WAKE_VIA: an SSH key that may only run /usr/local/bin/wake-transcriber, which sends a Wake-on-LAN packet to one fixed MAC) and waits up to TRANSCRIBER_BOOT_TIMEOUT_S. If it had to wake the PC, it tells the PC so (mark-woken).
  4. Transcribe. One SSH call streams a tar of the clips to transcriber.cmd (Windows tar.exe unpacks it from stdin; PowerShell must not read stdin, it hangs on larger input), then transcriber.ps1 runs whisper-cli with the configured model and language and answers with JSON. Whisper runs with Silero VAD (silence and noise are skipped, speech is cut into parts of at most 22 s) and -mc 0 (no earlier text is fed back in, so one garbled phrase can’t start a repetition loop). The bot merges all clips into one timeline: **[12:03] Adomas:** ….
  5. Post. A card in the notes channel shows the progress and then the participants and length; a thread under it gets the transcript as a .md file, then a Claude session (model MEETING_SUMMARY_MODEL) posts a short summary: a few sentences, decisions and action items. Meeting threads get no model footer and no status emoji in their name. In that thread Claude only answers when @mentioned, so people can discuss the meeting freely. The WAVs are deleted afterwards; the original .ogg audio is kept, see Kept recordings.
  6. Shut down. When no more meetings are waiting, the bot sends shutdown-if-woken. The PC shuts down in 5 minutes only if the bot woke it and nobody has logged in since: logging in runs a task that deletes the “woken by bot” flag and cancels a pending shutdown. If the PC was already on, it stays on.

If something fails, the recording is kept and the notes message says so; !meeting retry tries again. Recordings left over from a restart are retried on startup.

By default (AUDIO_EPHEMERAL=false) the bot records straight into RECORDINGS_DIR (/recordings), one folder per meeting:

/recordings/2026-11-26T18-40-30-882Z/
<user id>-<ms since start>.ogg one clip per utterance, Discord's Opus audio as received
meeting.json channel, start and end, who started it, user id → name
meeting-2026-11-26-20-40.md the transcript, copied here when it is ready

An hour of meeting is roughly 20–45 MB, depending on the voice channel’s bitrate. Nothing is ever deleted from there, so mount a disk at /recordings that node (uid 1000) can write. If the folder can’t be created, !record says so and doesn’t start.

With AUDIO_EPHEMERAL=true the clips stay in the bot’s state folder and are deleted after a successful transcript, as before v1.11.0. Whether a meeting’s audio is deleted depends on where it was recorded, so switching the flag never deletes kept recordings, even on !meeting retry.

Command Effect
!record Starts recording the voice channel you are in.
!record stop Stops and starts the transcription.
!meeting Recording, transcription and PC status.
!meeting retry Transcribes meetings that failed or were interrupted.
!meeting key Shows the bot’s SSH public key for the PC setup.
!meeting test Wakes the PC if needed, runs status over SSH, then lets it shut down again if the bot woke it.
  1. In Discord, run !meeting key and copy the key.
  2. Copy the repo’s windows/ folder (setup-transcriber.ps1, transcriber.ps1, transcriber.cmd) to the PC. In an administrator PowerShell in that folder:
    Terminal window
    Set-ExecutionPolicy -Scope Process Bypass
    .\setup-transcriber.ps1 -PublicKey "ssh-ed25519 AAAA… raugykla-bot-transcriber"
    Options: -Model azuolas (default), -Language lt, -Prompt "…", -CpuOnly (download the CPU build instead of compiling the Vulkan one).
    • Models: azuolas is Ąžuolas, whisper-large-v3 trained on 9,800 h of Lithuanian (LIEPA-3), as q8_0 (1.6 GB); azuolas-q4 is the q4_0 version (0.85 GB, about as accurate). The stock large-v3, large-v3-turbo, medium and small still work. Ąžuolas writes lowercase without punctuation, and makes up text in silence, which is why the VAD model is always downloaded and used.
    • Prompt: names and words the team uses, e.g. -Prompt "Adomas, Jonas, Raugykla, Linear, deploy.". It nudges Whisper towards those spellings. It is saved in C:\Transcriber\config.json; a later run without -Prompt keeps it.
    • Updating an installed PC (new scripts or another model): copy the new windows/ folder and run .\setup-transcriber.ps1 again without -PublicKey; the bot’s key stays as it is and finished steps are skipped. For a GPU it compiles whisper.cpp with Vulkan, which works on AMD cards such as the RX 5700. It installs Git, CMake, the Vulkan SDK and the Visual Studio C++ Build Tools with winget (several GB, takes a while).
  3. In the BIOS/UEFI, enable Wake-on-LAN (often Power On By PCI-E or Resume by PCI-E device; ErP must be off). The script already enables Wake on Magic Packet on the network card and turns off Fast Startup.
  4. Give the PC a fixed IP (DHCP reservation on the router).
  5. On the Pi (the Docker host), from the repo’s pi/ folder, as the user the bot should log in as:
    Terminal window
    ./setup-wake.sh 9C-6B-00-11-C7-DE "ssh-ed25519 AAAA… raugykla-bot-transcriber"
    It installs /usr/local/bin/wake-transcriber (MAC and broadcast address fixed inside) and lets the bot’s key run only that, only from Docker networks. The container reaches the Pi as host.docker.internal (extra_hosts in the compose files); no host networking needed.
  6. Set MEETING_NOTES_CHANNEL, TRANSCRIBER_HOST, TRANSCRIBER_USER (the Windows user name the script prints) and TRANSCRIBER_WAKE_VIA (printed by setup-wake.sh), update the stack, and run !meeting test with the PC switched off.

Security: on both machines the bot’s key is listed with a forced command. On the PC it can only run transcriber.cmd with one of a few fixed commands; on the Pi only wake-transcriber. No shell, no port forwarding, no other files.

Notes: the bot needs Connect in the voice channel. Whisper on an SSH session runs without a logged-in desktop; if the GPU is not available there, whisper.cpp falls back to the CPU (slower) — check C:\Transcriber\whisper.log.