A start-anytime local meeting recorder for Linux.
One key starts a recording and the same key stops it. You and the other side are recorded on separate tracks, so the local transcript knows who said what without guessing. Nothing leaves your machine.
A transcript, as duotape writes it:
[00:04] Me: Thanks for making time. Shall we start with the timeline?
[00:09] Them: Sure. The draft is due Friday, and the review the week after.
[00:16] Me: Then I'll send the figures by Wednesday.
[00:21] Them: Perfect, that gives us two days.
Quick start
On Debian or Ubuntu with GNOME. For another distribution, see Install; for another desktop, see Keyboard shortcut.
-
Install the system packages duotape uses:
sudo apt install pipx python3-gi gir1.2-notify-0.7 ffmpeg
-
Install duotape, then check the result.
~/.local/binis not on yourPATHuntil you log in again, so the commands spell it out:pipx ensurepath pipx install --system-site-packages --python /usr/bin/python3 duotape ~/.local/bin/duotape install-desktop ~/.local/bin/duotape doctor
duotape doctoris a read-only check of versions, devices, OBS, the transcriber, the tray and notifications. Until you build whisper.cpp (step 5), it warns that the transcriber is not ready: that is expected. Prefer a Debian package? See As a Debian package. -
Give duotape a key, again by its full path:
~/.local/bin/duotape gnome-shortcut install
-
Press Super+Alt+R, talk, and press it again. (Opening duotape from the app grid does not record: it puts duotape in the tray, and a menu there starts a recording.)
-
Your recording is in its own folder in
~/Documents/Recordings/. Play<name>_mixed.opus, the listening copy, which has you and the other side together. Transcripts need whisper.cpp, which you build once: Transcripts: building whisper.cpp. -
Video is off until you set it up: see Screen video.
Status
Alpha. Tested on Ubuntu 26.04 with GNOME, on an Intel GPU; best effort elsewhere. duotape is designed to work on any desktop with PipeWire and systemd, but KDE Plasma, wlroots desktops (sway, Hyprland), and NVIDIA or AMD GPUs are untested. No test can hold a microphone, a headset or OBS: those were checked by hand, on the tested machine.
| Works | Works with caveats | Not supported |
|---|---|---|
| Ubuntu 26.04: tested. Fedora 45 and Arch: CI runs the tests on each, and builds, installs and removes the AUR package on Arch. CI also installs the Debian package on Ubuntu 26.04 | Debian 13: CI runs the tests and installs the Debian package, but its WirePlumber is 0.5.8, below the 0.5.13 a Bluetooth headset needs: start the call before the recording (duotape doctor warns). Ubuntu 24.04 and its derivatives: should work, untested, audio only. Its ffmpeg is 6.1, below the 7 duotape expects (duotape doctor warns); its WirePlumber is 0.4, below the 0.5.13 a Bluetooth headset needs; its OBS is 30.0, below the 30.2 that video needs |
Debian 12 and Ubuntu 22.04: systemd 254 or later is required, and Debian 12 has 252 |
Screen video through OBS is experimental (see Screen video).
What it does
-
One toggle, from anywhere: your keyboard shortcut and
duotape togglestart and stop a recording. The app launcher opens duotape in the tray, and records nothing until you ask. -
Two lossless tracks:
- the other side, which is whatever plays through your speaker or headset;
- your microphone, a device's own or a virtual one (such as EasyEffects' processed microphone).
Optionally, the screen is recorded through OBS as well (experimental).
-
Visible state: a red tray icon while recording. Without a tray, a notification stays on screen until you stop.
-
Health checks while recording. It warns you if:
- your microphone goes dead, or either track stops receiving audio at all;
- the headset disconnects;
- the call isn't playing through the recorded speaker;
- the video stops.
If nothing is being recorded any more (the audio recorder died, and no video is running), the session stops by itself, saves what it has, and says so. It never stays "recording" with nothing behind it.
-
Forgotten-recording guard: when the call app lets go of the microphone, duotape asks whether to stop. If you don't answer, it stops by itself.
-
It records your setup as it is. duotape records the microphone and speaker your system uses (or the ones you configure), and never changes a default device or a Bluetooth headset's mode. While a headset's microphone is recorded, WirePlumber itself keeps the headset in call mode, and switches it back once nothing records from it.
-
Local transcript after every stop (after a logout, see Troubleshooting): whisper.cpp on the GPU (Vulkan) or the CPU, written as
[mm:ss] **Me:** …and[mm:ss] **Them:** …lines.
It does not upload anything, join calls as a bot, or tell several remote speakers apart (the other side is one track). Nor does it tell the other side that you are recording: see Recording and consent.
Requirements
| What | Version | Without it |
|---|---|---|
Linux with PipeWire, its PulseAudio server (pipewire-pulse) and WirePlumber |
WirePlumber ≥ 0.5.13 to record a Bluetooth headset that is both your microphone and your speaker, starting before the call | duotape cannot record. With an older WirePlumber, start the call first: switching the headset to call mode replaces its speaker, so the other side may not be recorded. duotape doctor shows the version and warns when it matters |
| A systemd user session | systemd ≥ 254 | duotape cannot start a recording: every unit is started with systemd-run --expand-environment=no |
| Python with PyGObject | Python ≥ 3.11 | duotape does not run |
The libnotify typelib (gir1.2-notify-0.7 on Debian and Ubuntu) |
every notice of the session goes through notify-send, a stopgap: none has buttons, and none is replaced or closed once shown, so any of them can stay on screen after "Saved". Warnings and the two questions, "The call seems over — still recording" and "Still recording after a long time", are critical, so a notification server keeps them until you dismiss them. "Starting the video…", "Recording" and "Saving…" are critical only without a tray icon, and "Starting the video…" then still says "Audio is already recording", after nothing does |
|
| A notification server | full desktops have one built in; on a bare window manager, use one such as mako or dunst. Without one, only the tray icon shows a recording, and duotape doctor fails when there is no tray either |
|
| ffmpeg | ≥ 7 | 6.x is untested, and duotape doctor warns about it. 5.x and older cannot record: they lack the fd: protocol, through which duotape hands ffmpeg its files (see "Privacy and backups"), and duotape doctor fails |
| Optional: OBS Studio, from your distribution's package | ≥ 30.2, for Hybrid MP4 and Lua scripting | no screen video. A Flatpak or Snap OBS cannot see the files duotape shares with it |
| Optional: xdg-desktop-portal and its backend for your desktop | OBS cannot capture the screen, which it asks the desktop for through the screen-share portal | |
| Optional: whisper.cpp | ≥ 1.7.6, for voice activity detection (--vad) |
no transcripts. Build it as described below |
| Optional: a tray (a StatusNotifierItem host) | a notification stays on screen while recording instead, and opening duotape from the app grid cannot put it in the tray: it says "duotape needs a tray icon area", and offers a "Start recording" button when notifications can show buttons. KDE Plasma and waybar have a tray built in; on GNOME, enable the AppIndicator extension (a newly installed one may be listed only after you log out and back in) |
No PyPI packages are needed.
Install
Install duotape with pipx from PyPI, as a Debian package, or from the AUR. After any of them, run duotape doctor:
a read-only check of versions, devices, OBS, the transcriber, the tray and notifications.
With pipx, from PyPI
First the system packages that duotape uses from Python, and ffmpeg:
| Distribution | Command |
|---|---|
| Debian, Ubuntu | sudo apt install pipx python3-gi gir1.2-notify-0.7 ffmpeg |
| Fedora | sudo dnf install pipx python3-gobject libnotify ffmpeg-free |
| Arch | sudo pacman -S python-pipx python-gobject libnotify ffmpeg |
Then:
pipx ensurepath
pipx install --system-site-packages --python /usr/bin/python3 duotape # the duotape command, in ~/.local/bin
~/.local/bin/duotape install-desktop # the launcher entry, its icons, and ~/.config/duotape/config.toml if none
~/.local/bin/duotape doctor
--system-site-packages lets duotape use the system's PyGObject, and --python /usr/bin/python3 makes pipx build its
environment on the system's Python, the one that has PyGObject. On a fresh account, ~/.local/bin is not on your PATH
until you log in again, which is why the commands above spell out its path; after that, plain duotape works. To
update, run pipx upgrade duotape. After every upgrade, run duotape install-desktop again: it renews the icons and
the launcher entry, and keeps your config. A tray app that is running notices the new installation while it is idle,
and restarts itself; during a recording it waits until the recording ends. If the launcher is gone, it says so and
quits.
As a Debian package
For Debian 13 and Ubuntu 26.04, on which CI installs it. Each
GitHub release has a .deb and SHA256SUMS. Download both into
one folder, then:
sha256sum --check --ignore-missing SHA256SUMS
sudo apt install ./duotape_*_all.deb
duotape doctor
apt installs what duotape needs, ffmpeg and PyGObject among them. The package brings the launcher entry and its
icons for every user of the computer. A running tray app restarts itself after an upgrade, as for pipx. Run
duotape install-desktop as well to get a config file to edit, or the launcher's language actions
([launcher] languages): its entry, in your home folder, then takes precedence for you.
There is no apt repository: to update, install the next release's .deb the same way.
From the AUR
On Arch, build the duotape package from the AUR with an AUR helper, or by hand:
git clone https://aur.archlinux.org/duotape.git && cd duotape
makepkg -si
duotape doctor
Like the Debian package, it brings the launcher entry and its icons for every user. To update, run git pull and
makepkg -si again inside the clone you kept (in a fresh folder, clone it again), or let your AUR helper do it.
From a checkout
For a version that is not released yet:
git clone https://github.com/ZviBaratz/duotape && cd duotape
pipx ensurepath
pipx install --system-site-packages --python /usr/bin/python3 .
~/.local/bin/duotape install-desktop
~/.local/bin/duotape doctor
This installs the same way as the pipx section above, with the same system packages first. On a fresh account,
~/.local/bin is not on your PATH until you log in again, which is why the commands spell out its path.
To update, git pull and run the same pipx install with --force, then run duotape install-desktop again: it
renews the icons and the launcher entry, and keeps your config.
Screen video (optional, experimental)
Video is experimental. duotape drives OBS through OBS's tray menu, a Lua control script and OBS's own profile files, any of which an OBS release can change; it was tested with OBS 32.1 on GNOME. When video fails to start, the recording goes on with audio only, and its notification says why.
If you have never opened OBS, open and close it once: its first start offers a setup wizard, which must not open
later on duotape's profile. Then, with OBS closed, run duotape setup-obs. It creates a separate OBS profile and
scene collection, both named Meeting. Its settings:
- Hybrid MP4 at 1080p30, encoded H.264 on the first GPU that passes a short test encode (VAAPI), or with software
x264 when none does.
setup-obssays which, and so doesduotape doctor; - audio tracks 1 = mix, 2 = you, 3 = the other side;
- a small Lua control script, installed into OBS.
Your other OBS profiles and collections are never touched. Running setup-obs again changes only what differs, and
copies a file it changes aside first, as <file>.<date>-<time>.bak. The first video recording asks once which
monitor to capture, and OBS remembers the choice, also across a later setup-obs.
Video is off by default. To turn it on for every recording, set mode = "video" under [recording] in
~/.config/duotape/config.toml; for one recording, run duotape start --video.
Transcripts: building whisper.cpp
First the build tools: cmake with a build program (make), a C++ compiler, git, and for the Vulkan (GPU) build the
Vulkan headers and loader, the SPIR-V headers, and glslc, the shader compiler:
| Distribution | Command |
|---|---|
| Debian, Ubuntu | sudo apt install cmake g++ git libvulkan-dev glslc spirv-headers |
| Fedora | sudo dnf install cmake gcc-c++ git vulkan-headers vulkan-loader-devel glslc spirv-headers-devel |
| Arch | sudo pacman -S cmake make gcc git vulkan-headers vulkan-icd-loader shaderc spirv-headers |
Without a GPU that supports Vulkan, build for the CPU instead: install only cmake (and make, on Arch), the compiler and
git, and drop -DGGML_VULKAN=ON from the cmake line below (it then runs slower). The model download is about 1.6 GB.
The clone is pinned to a release, v1.9.6, the one these steps were checked against.
git clone --branch v1.9.6 --depth 1 https://github.com/ggml-org/whisper.cpp && cd whisper.cpp
cmake -B build -DGGML_VULKAN=ON -DBUILD_SHARED_LIBS=ON && cmake --build build -j --config Release
mkdir -p ~/.local/share/duotape/whisper/{bin,models}
cp build/bin/whisper-cli ~/.local/share/duotape/whisper/bin/
find build -name 'lib*.so*' -exec cp -P {} ~/.local/share/duotape/whisper/bin/ \;
./models/download-ggml-model.sh large-v3-turbo && mv models/ggml-large-v3-turbo.bin ~/.local/share/duotape/whisper/models/
./models/download-vad-model.sh silero-v5.1.2 && mv models/ggml-silero-v5.1.2.bin ~/.local/share/duotape/whisper/models/
That model is multilingual, so it transcribes any language whisper knows. If a language has a fine-tuned model of
its own, name it under [transcription.models] (for example de = "~/models/<file>.bin"); every other language keeps
the multilingual one. Already have whisper.cpp somewhere else? Point [transcription] home (or the individual paths)
at it in the config.
Keyboard shortcut
| Desktop | How |
|---|---|
| GNOME | duotape gnome-shortcut install, or ~/.local/bin/duotape gnome-shortcut install with pipx before your next login (default Super+Alt+R; --binding '<Super><Shift>r' to change it; duotape gnome-shortcut check tests a key without changing anything) |
| KDE Plasma | System Settings → Keyboard → Shortcuts → Add New → Command: /usr/bin/duotape toggle for the packages, or the absolute path of the pipx launcher, /home/<you>/.local/bin/duotape toggle |
| sway | bindsym $mod+Alt+r exec $HOME/.local/bin/duotape toggle (pipx), or exec /usr/bin/duotape toggle (packages) |
| Hyprland | bind = SUPER ALT, R, exec, $HOME/.local/bin/duotape toggle (pipx), or /usr/bin/duotape toggle (packages) |
src/duotape/data/gnome-shortcut.sh, which duotape gnome-shortcut runs, is the only GNOME-specific code. Replace
it to support another desktop.
Use
| To | Do |
|---|---|
| Open duotape in the tray | click duotape in the app grid (or run duotape tray): its icon appears, and nothing records. A second click says where duotape is: "duotape is in the tray", or "duotape is recording, since 09:36" |
| Start or stop | your key or duotape toggle; the tray menu. The launcher entry's right-click menu only starts ("Start recording"). With no tray, the recording's on-screen notice has a "Stop and save" button |
| Start with video, for one recording | duotape start --video |
Start audio only (when mode = "video" is set), or in another language |
the launcher entry's right-click actions ("Start recording (audio only)", shown in video mode, and one per language in [launcher] languages), or duotape start --audio-only / --language de |
| Name the recording | duotape start --title "Board call" |
| Stop without a transcript | the tray menu, or duotape stop --no-transcribe |
| Discard a recording | the tray menu's "Discard recording…", or duotape discard (see below) |
| See what's happening | the tray icon, duotape status, or duotape status --json for a status bar |
| Transcribe again, in another language | duotape transcribe <folder>/<name>.mka --language de; it replaces <name>_transcript.md, so add --output <file> to write the new one elsewhere and keep the old |
| Transcribe a stereo recording from another tool | duotape transcribe <file>; the left channel must be the other side and the right one you |
Each meeting gets a private folder, <YYYY-MM-DD_HHMM>_<title>/, in the recordings folder (by default, Recordings
in your Documents folder, such as ~/Documents/Recordings), holding:
<name>_mixed.opus: the file to play, made after a stop that saved both tracks (not after a crash). Both sides are mixed into one mono Opus track, about 0.5 MB a minute. It is ready within a minute of the stop (a 2-hour meeting took 35 s here). It cannot be transcribed, because the two sides are no longer apart.<name>.mka: the lossless audio. Stream 0 is the other side and stream 1 is you; the transcript is made from this file. Players play only its first track, the other side, so a test recording with no call sounds silent there.<name>.mp4: the screen video with 3 audio tracks (when video was recorded).<name>_transcript.md: the transcript.*(echo?)*marks a line of yours that repeats theirs. That happens on loudspeakers, where your microphone hears the other side.[×N]marks a spot where the model looped.
The tray. Clicking the icon opens its menu; nothing starts until you choose an item.
- While nothing records, the menu has a status line ("Not recording", or "The transcript of 09:36 waits for the call to end" or "Making the transcript of 09:36…" while a transcript is due or in progress), then a start item for each mode, the configured one first: "Start recording (audio only)" and, when OBS is set up for duotape, "Start recording (video + audio)". Below them are "Open the last recording" (when its folder still exists), "Open recordings folder" and "Quit duotape".
- While recording, the tray shows the red icon and the recording menu: the time recorded and the mode, a line for each warning, "Stop and save", "Stop without transcript", "Open this meeting's folder" and "Discard recording…" (only where notifications can show buttons). Once a stop has begun, only the status line and "Open this meeting's folder" remain.
- A recording started from the launcher's right-click menu leaves duotape in the tray, which shows its idle icon
again when the recording ends. Set
stay_in_tray = falseunder[launcher]to leave nothing behind. A recording started with your key or in a terminal never starts the tray.
Starting with your session. On GNOME 49 and later, open Settings → Apps → duotape, turn on Run in Background, then Autostart; on KDE, add duotape under System Settings → Autostart. duotape does not set this up itself.
Discarding. While a recording starts or runs, the tray menu has "Discard recording…" (where notifications can show
buttons). It asks "Discard this recording?", with "Keep recording" and "Discard". duotape discard asks on the
terminal ([y/N]); --yes skips the question, and without a terminal it refuses unless you pass --yes. A discard
deletes the recording's files (the audio, the recorder's log, the level files and the video) and keeps any other file
in the meeting folder. The video is deleted only once OBS has stopped recording it; otherwise it is named. "Recording
discarded" says nothing was saved; "Discarded, with problems" names each item left.
Disk space is checked at every start. With less than 2 GB free in the recordings folder, duotape does not record; with less than 20 GB free, a recording that asked for video is audio only, and says why. Video takes roughly 3 GB an hour (6000 kbit/s of video plus three audio tracks of 192 kbit/s each).
Naming the wrong language makes whisper silently translate the speech into it, so pick the language that was actually spoken. A call that mixes two languages is the weak spot of local transcription.
A status-bar module, for example waybar:
"custom/duotape": {
"exec": "duotape status --json | jq -c '{text: (if .active then \"● REC\" else \"\" end), class: (.phase // \"idle\")}'",
"return-type": "json", "interval": 2, "on-click": "duotape toggle"
}
Configuration
~/.config/duotape/config.toml (or $DUOTAPE_CONFIG). Every key is optional, and an unknown key is an error.
duotape --print-default-config prints the commented template. A path may start with ~/, and a relative path is
taken from your home folder, whichever process reads it. The main keys:
| Key | Default | Meaning |
|---|---|---|
[recording] folder |
Recordings in your Documents folder |
each meeting gets its own private folder here. The Documents folder is the one your desktop names in ~/.config/user-dirs.dirs (~/Dokumente on a German desktop), or ~/Documents |
[recording] mode |
"audio" |
"video" records the screen through OBS too (after duotape setup-obs) |
[audio] microphone, speaker |
"default" |
a PipeWire node name (wpctl status --name), or the current default |
[transcription] enabled |
true |
false makes no transcript after any recording, and turns off the "No transcript: whisper.cpp is not set up (see duotape doctor)" line that "Saved" shows without whisper.cpp. duotape transcribe still works |
[transcription] language |
"en" |
the default spoken language |
[transcription] my_label, their_label |
"Me", "Them" |
the names the transcript gives you and the other side |
[transcription] home |
~/.local/share/duotape/whisper |
holds bin/whisper-cli and models/ |
[transcription] default_model |
models/ggml-large-v3-turbo.bin under home |
the multilingual model, used for every language without a model of its own |
[transcription.models] |
none | a model for one language, used instead of default_model, e.g. de = "~/models/<file>.bin" |
[guard] call_end_grace_seconds |
120 |
how long after the call releases the mic duotape asks whether to stop |
[guard] call_end_auto_stop_seconds |
300 |
how long a question, "The call seems over — still recording" or "Still recording after a long time", may go unanswered before duotape stops by itself (a soft-cap question follows soft_cap_auto_stop below) |
[guard] soft_cap_minutes |
240 |
after this long, duotape asks whether to keep recording, call or no call |
[guard] soft_cap_auto_stop |
"unless-in-call" |
what that question does when nobody answers it within call_end_auto_stop_seconds: "unless-in-call" stops once no call has held a microphone for call_end_grace_seconds, and at most one more soft-cap period later, "always" stops even during a call, "never" keeps recording (a recording whose call ends is still stopped as usual) |
[guard] ignored_capture_apps |
[] |
apps whose microphone use is not a call, such as an always-on voice typer; duotape doctor lists the apps capturing a microphone now (see "Call detection" under How it works) |
[launcher] languages |
[] |
languages that get a "start recording" action in the launcher entry's right-click menu, e.g. ["de"]; run duotape install-desktop again after a change |
[launcher] stay_in_tray |
true |
a recording started from the launcher's menu leaves duotape in the tray |
How it works
Units. duotape toggle and duotape tray are short-lived; everything else runs in transient systemd user units:
| Unit | What runs | How it stops |
|---|---|---|
duotape-tray |
the tray app, started by opening duotape from the launcher, or, hidden until that recording ends, by a recording started from the launcher's right-click menu. It shows the idle icon, and steps aside while duotape-session is starting, running or stopping, so there is never a second icon; it shows again when that unit ends |
it ends with the login that started it (PartOf=graphical-session.target), or from "Quit duotape". A crash restarts it, at most 3 times in 60 s |
duotape-session |
the supervisor (a GLib loop) and ffmpeg | every stop sends SIGINT to both at once (systemctl --user stop, or a logout): ffmpeg finishes its file, the supervisor runs its stop sequence. A logout, or a crash of the desktop, stops and saves it the same way (PartOf=graphical-session.target); if the desktop is already gone (a crash), "Saved" cannot show, and a screen video may end early |
duotape-obs |
OBS, with the Meeting profile, minimized |
duotape first shows OBS's window from its tray menu, in whatever language OBS uses (a hidden OBS 32.1 ignores close requests, so the window flashes for a second), then sends SIGINT, which OBS handles like its close button (after SIGTERM, OBS 32.1 crashes on its way out). Never killed, because a killed OBS starts in Safe Mode next time. A normal stop closes it this way before it saves. After a crash, the session unit's ExecStopPost closes it the same way, right after. One that ignored the close stays open until the next start closes it, whether that start records video or audio only |
duotape-transcribe-* |
waits until no call is running, for up to 2 hours (then it transcribes anyway, as it does when PipeWire cannot be read), then transcribes; then serves "Transcript ready"'s buttons for up to 10 minutes | on its own |
duotape-listening-copy-* |
after every saved recording: when there are two tracks, mixes both sides into <name>_mixed.opus, at low priority (Nice=10); then serves "Saved"'s Play and Open folder buttons for up to 10 minutes |
on its own |
The tray icons. A state is told by shape, never by colour alone, and red is only for recording:
| Icon | Look | When |
|---|---|---|
duotape-recording |
filled red halves | recording |
duotape-recording-warning |
filled red halves, yellow "!" badge | recording, with a problem |
duotape-working |
hollow slate halves, "…" badge | something is in progress: "Saving…", "Discarding…", "Stopping the recording"; in the tray app, a transcript waiting or being made |
duotape-idle |
hollow slate halves | the tray app with nothing in progress; "Recording cancelled", "Recording discarded" |
duotape-warning |
hollow slate halves, yellow "!" badge | problems after the stop |
duotape |
the app icon | "Saved" and "Transcript ready" |
The session unit's ExecStopPost runs after every session, and does nothing after a normal stop. It acts only on a
session that ended without an end state of its own, and it reports that even if the supervisor died. With a meeting
folder, that is "Recording stopped unexpectedly". Without one, it is "Recording cancelled" when the stop was asked for
(it arrived while the supervisor was still loading), and "Recording did not start" otherwise. After a crash during a
video recording, it also stops OBS's recording, moves the video into the meeting folder, and closes OBS; after any such
end, it closes an OBS that is not recording. If OBS does not confirm the stop within 15 s, the notification names where
the video is, and OBS is left for the next start to close. The video is only renamed into the meeting folder, never
copied, which could take minutes: one on another filesystem stays where it is, and the notification names it.
The session's D-Bus name. From the moment a recording starts until its stop ends, the supervisor owns
io.github.zvibaratz.duotape.Session on the session bus, with one method, Discard; once a save has begun, it answers
that it is too late. It is local to your desktop session; no network socket is involved.
OBS control. OBS is controlled through private files in $XDG_RUNTIME_DIR/duotape/obs/, never a network port:
- duotape writes
command.jsonand a heartbeat every 2 s; - the Lua script inside OBS answers in
state.json.
If the heartbeat goes stale for 15 s while a duotape recording runs, the script stops the recording. That is the
fallback: after a crash, the session unit's ExecStopPost stops it at once. A crashed supervisor never leaves OBS
recording the room.
Audio. One ffmpeg process reads both devices, with a separate filter graph and wall-clock timestamps for each. The
microphone's timestamps count from the other side's start (-isync), so the two tracks line up. A dropout on one
side leaves a gap instead of shifting the rest. The extraction for whisper fills such gaps with
silence, so both tracks stay on one timeline. ffmpeg reads the two in step, though, so a device that stops
delivering audio holds up the other track as well; after 15 s duotape warns that no audio is arriving.
Call detection. duotape keeps no list of call apps: any other application that captures a microphone counts as
a call. The forgotten-recording guard arms when one starts, and asks once it has been gone for
call_end_grace_seconds. Some applications capture a microphone without being a call, such as a voice typer,
EasyEffects, pavucontrol, or the sound settings while they show the input level. One that does so all the time looks
like a call that never ends: the guard never asks, and when the soft cap asks and nobody answers, the default
soft_cap_auto_stop lets the recording run one more soft-cap period before it stops. duotape doctor lists the
applications capturing a microphone now; add the one that is not a call to [guard] ignored_capture_apps, by the
name doctor shows (PipeWire's application name, matched whole, ignoring case).
The transcription uses the same test, so that it never shares the GPU with a call. It waits for at most 2 hours, and then transcribes whether or not a call is still running.
Notifications. They come from "duotape recorder", not "duotape". GNOME ties a notification named after an
installed launcher (here duotape.desktop) to that app, and deletes it as soon as the process that sent it exits.
That would wipe "Saved", "Transcript ready" and the crash alert before you could read them. So GNOME's Settings →
Notifications has no duotape entry; Do Not Disturb still silences them.
"Saved" and "Transcript ready" have buttons for 10 minutes, where the notification server shows buttons.
Logs: journalctl --user -u duotape-session (and -u duotape-obs, -u 'duotape-transcribe-*',
-u 'duotape-listening-copy-*'), plus .ffmpeg.log in the meeting folder.
Privacy and backups
- Local only.
- Folders are
0700and files0600. A drive without Unix permissions (FAT, exFAT, a network share) cannot keep them; a recording there still starts, its notification says the folder is not private, andduotape doctorwarns. - The recordings folder itself is made
0700at every start, even one that existed before. Don't point[recording] folderat a folder you share with others on purpose. - Every process runs with
umask 077, OBS included: each unit is started withUMask=0077. - No meeting title in another user's process list. Every local user can read any process's arguments, so
duotape keeps the title and the meeting's file names out of them. The session reads the title from an
owner-only file in
$XDG_RUNTIME_DIR/duotape/, and the transcription and listening-copy jobs read the recording's path the same way. ffmpeg and ffprobe read and write the recording through an inherited file descriptor (ffmpeg'sfd:protocol), and whisper-cli runs in its work folder with relative file names. What stays:- a one-off notification (transcript ready where no buttons can be shown, a failed transcription, a crash) goes
through
notify-send, whose arguments hold its text, meeting folder included. Without the libnotify typelib, every notification does, "Saved" with its folder among them; - "Open this meeting's folder", in the tray menu, and the "Open folder" buttons run
xdg-openwith the folder when no file manager answers over D-Bus; - "Play" and "Open transcript" hand the file to the desktop portal as an open file descriptor, not a path. When
no portal answers,
xdg-openruns with the file's path, as it does with the folder. Either way, the application that opens the file may hold its path in its own arguments for as long as it runs; applications the desktop starts over D-Bus, as GNOME's own are, do not; duotape start --title …andduotape transcribe <file>hold what you typed until they return.
- a one-off notification (transcript ready where no buttons can be shown, a failed transcription, a crash) goes
through
- duotape's own code opens no network connection. OBS and whisper.cpp are separate programs, with their own behaviour; the whisper.cpp steps above download its models from Hugging Face, once.
- There is no cloud transcription. A cloud service (Soniox, for example) would mean uploading the audio yourself, on purpose.
- Folders are
- The microphone records the whole room for as long as a recording runs. That's why the state stays visible and the guard asks when the call seems over.
- Backups. If your home folder is backed up (for example with restic to an external drive or cloud storage),
recordings are backed up too, encrypted with your own key.
- Deleting a recording locally does not remove it from existing snapshots.
- To purge one, forget the snapshots that hold it and prune, e.g.
restic forget <snapshot-id> … && restic prune. For an append-only repository, that needs the key that is allowed to delete. - A discard deletes a recording's files, but not what other places kept of it: backups, the journal's lines
(
journalctl --user -u duotape-session), OBS's own log under~/.config/obs-studio/logs, which names the video file, and thumbnails a file manager made. - Excluding the recordings folder from backups is a choice you can make in your backup configuration. duotape doesn't make it for you.
Recording and consent
duotape does not tell the other side of a call that you are recording it. It is not made to be hidden either: while it records, it shows you so. Whether you may record a call, and what you may do with the recording, depends on where you and the others are, and whose call it is. This is not legal advice, but:
- Some places need the consent of only one party, who may be you:
- US federal law lets a party to a call record it, unless the purpose is a criminal or tortious act (18 U.S.C. § 2511(2)(d)).
- Canada's Criminal Code exempts anyone with the consent of the person speaking or of someone they were speaking to (s. 184(2)(a)).
- Others need everyone's consent:
- About 11 US states, among them California, Florida, Illinois, Pennsylvania and Washington, and several more for some kinds of conversation (RCFP's recording guide).
- In Germany, making an audio recording of someone's privately spoken words without authorisation is an offence, and so is using it or making it available to anyone else (§ 201(1) StGB).
- When the participants are in different places, assume the strictest of their rules applies, as RCFP advises for calls between US states.
- At work, your employer's policy applies too. In the EU, the GDPR exempts only "a purely personal or household activity" (Art. 2(2)(c)), which a recording made for work is unlikely to be.
- Sharing a recording is a separate question from making it.
The simple practice: say at the start of the call that you are recording it for your notes, and stop if anyone objects. Never use duotape to record people covertly.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| "OBS could not be closed" | OBS stopped recording but did not exit, for example because its window could not be shown from the tray menu. It keeps running hidden, without recording, and holds the microphone, so the call-end guard takes it for a call. duotape closes it at the next start (an audio-only one, once it is recording), or close it yourself from its tray icon |
| "duotape needs a tray icon area" | You opened duotape from the app grid and no tray is running, so it cannot show its icon (it waits 20 seconds for a tray that is still starting). Turn on a tray as in the next row; until then, use the launcher's right-click menu, your key, or the notice's "Start recording" button when it has one. |
| No tray icon | No StatusNotifierItem host is running. The always-visible notification takes over. On GNOME, enable the AppIndicator extension. On Ubuntu it comes with gnome-shell-ubuntu-extensions, normally preinstalled: gnome-extensions enable ubuntu-appindicators@ubuntu.com. On Debian 13, Fedora and Arch, install gnome-shell-extension-appindicator, then turn it on in the Extensions app, after logging out and back in if it is not listed (its package is gnome-extensions-app on Fedora and Arch, gnome-shell-extension-prefs on Debian). |
| A headset sounds like a phone call while recording | WirePlumber keeps a headset in call mode while anything records its microphone, duotape included, and switches it back once nothing does. To keep music quality, record another microphone: choose one in the sound settings, or set [audio] microphone. |
| The other side's track goes silent when a headset switches to call mode | WirePlumber older than 0.5.13 replaces the headset's speaker when it switches. Start the call before the recording, or update WirePlumber; duotape doctor shows the version. |
| The forgotten-recording guard never asks | An app that always captures a microphone counts as a call that never ends. duotape doctor lists the apps capturing one now; add the one that is not a call to [guard] ignored_capture_apps. |
| "Is the call using this speaker?" | The call app plays somewhere else. Set its speaker to the one duotape named, or set [audio] speaker. |
| "Video unavailable: OBS did not load its control script" | OBS is probably showing its Safe Mode prompt after a crash. Open OBS once, choose to run normally, then close it. |
| OBS asks which screen to share | The monitor it remembered is gone (undocked). Pick one. |
| "Video unavailable: OBS Studio from Flatpak (or Snap) is not supported" | duotape starts obs itself and shares files with it under $XDG_RUNTIME_DIR and ~/.config/obs-studio, which a sandboxed OBS cannot see. Install your distribution's OBS package, 30.2 or later. |
duotape doctor warns that no screen-share portal answers |
OBS's screen capture asks the desktop for the screen through xdg-desktop-portal. Install it and the backend for your desktop (for example xdg-desktop-portal-gnome, -kde or -wlr), then log in again. Audio recording is not affected. With [recording] mode = "audio", doctor shows this line as OK instead, with "to record video" and the same reason. |
setup-obs chose software x264 |
No GPU passed the test VAAPI H.264 encode: an NVIDIA-only machine, or no VAAPI driver (on Debian and Ubuntu, intel-media-va-driver or mesa-va-drivers). Software x264 records fine on a current CPU; to use the GPU, install its driver and run duotape setup-obs again. |
| "could not start duotape-session: duotape needs systemd 254 or later" | Every unit is started with systemd-run --expand-environment=no, which systemd 254 added. Older distributions (Debian 12, Ubuntu 22.04) are not supported. |
| "Transcription failed: whisper.cpp is too old" | That whisper.cpp has no voice activity detection (--vad), which duotape uses to skip silence and which came with 1.7.6. Build a current one (see above); duotape doctor warns about it too. |
duotape doctor warns that OBS saves to another folder |
The Meeting profile was written for an earlier [recording] folder. The video still ends up in the meeting folder, but OBS writes it elsewhere first; run duotape setup-obs again with OBS closed. |
| "Video unavailable: OBS saves its recordings to …, which does not exist" | The Meeting profile saves to a folder that is gone: an earlier [recording] folder, or a drive that is not plugged in. OBS would refuse to record there, so duotape records audio only without starting it. Run duotape setup-obs again with OBS closed, or plug the drive back in. duotape doctor says the same on its video line. |
| "Video unavailable: OBS did not start recording within 10 s" | OBS took the command but did not record. The message names OBS's log folder; its newest file says why, for example "bad output path". |
duotape doctor warns that the launcher entry still starts a recording on a click |
The entry is from before the tray app: its click runs toggle. Run duotape install-desktop again; when the entry is under /usr (a package), update the duotape package. |
duotape doctor says "tray app: not running" |
Fine: open duotape from the app grid to start it. |
duotape doctor says the transcriber is not ready |
It names each missing file. Build whisper.cpp (see above), point [transcription] home at an existing build, or correct default_model or the path in [transcription.models]. With [transcription] enabled = false, doctor shows this line as OK instead, with "to transcribe" and what is missing. |
| "Recording did not start: the audio recorder exited at once" | ffmpeg could not open the speaker's monitor or the microphone. The lines quoted in the notification are ffmpeg's own; duotape doctor shows which devices it would use. |
| "Saved …, with problems" | The recording was saved, but something went wrong on the way; the notification names each problem and stays until you dismiss it. A recorder that had stopped, and was still stopped when the recording ended, is listed there too. |
| The transcript has not appeared | The transcription waits until no other app is capturing a microphone, for up to 2 hours, and then runs. systemctl --user list-units 'duotape-transcribe-*' lists it while it waits or runs, and journalctl --user -u 'duotape-transcribe-*' shows its log. An app that always captures a microphone keeps it waiting: add it to [guard] ignored_capture_apps. Without whisper.cpp, "Saved" says "No transcript: whisper.cpp is not set up (see duotape doctor)" instead. After a logout, the transcription and the listening copy end with your user's services, about 10 s later, unless lingering is on (loginctl enable-linger) or you are still logged in elsewhere; nothing is left of them. After you log back in, duotape transcribe <folder>/<name>.mka makes the transcript. No duotape command makes the listening copy again: the "No listening copy" row below has the ffmpeg command. |
| "Your microphone seems dead" | The track from your microphone has carried no sound at all for 10 seconds. It may be muted, or a Bluetooth headset may have dropped its link: unmute it, or reconnect the headset. Until then your side is silent in the recording. |
| "Video unavailable: OBS is already open — close it to record video" | The "Recording" notification says this when OBS was running before the recording began: the recording is audio only. Close OBS, and the next recording that asks for video starts it. A variant says the OBS the last recording left open could not be closed; close that one too. |
| "Recording stopped unexpectedly" | "duotape exited before saving cleanly. What was recorded is in" the meeting folder, which the notification names; a screen video that could not be moved there is named too. The .mka there holds what was recorded; there is no listening copy. journalctl --user -u duotape-session and .ffmpeg.log in the folder say what happened; duotape transcribe <folder>/<name>.mka makes the transcript. |
| "OBS may still be recording. Close it now." | OBS neither confirmed the stop nor closed. duotape never kills OBS, so open its window and stop it yourself. |
| "Recording failed: no audio was saved" | Neither the audio file nor a video exists for this session. .ffmpeg.log in the meeting folder says why the recorder gave up. |
| "No listening copy" | The notification gives the reason: less than 2 GB free, or an ffmpeg without libopus (ffmpeg -encoders lists libopus when it has it). The .mka is safe either way. After a crash there is no copy. Make one by hand; unlike duotape's own commands, it shows the file's name to other users while it runs: ffmpeg -i <name>.mka -filter_complex '[0:a:0]aresample=async=1:first_pts=0[them];[0:a:1]aresample=async=1:first_pts=0[me];[them][me]amix=inputs=2:normalize=0' -ac 1 -c:a libopus -b:a 64k <name>_mixed.opus |
| "Recording discarded" | You discarded it: "Nothing was saved." Its files are deleted. Backups, if any, still hold them (see Privacy and backups). |
| "Discarded, with problems" | The discard ran, but each sentence names something left. "OBS may still be recording. Close it, then delete |
| "Recording cancelled" | The stop came while the recording was still starting, up to the audio recorder's first second (opening a headset can take a few seconds). Nothing is kept: the first second's audio, if any, is deleted with its folder. A quick double press of the key does not do this: duotape toggle ignores a press within 2 s of the last one that acted. A stop after the first second, while OBS starts, keeps the audio recorded so far, and duotape closes OBS again before it saves. "Saving…" shows at once, however you stop. |
Reporting problems
Open an issue at https://github.com/ZviBaratz/duotape/issues/new/choose. It helps to include:
- the version, from
duotape --version; - how you installed it: pipx, the
.deb, the AUR or a checkout; - your distribution and desktop;
- the output of
duotape doctor; - the last 100 lines of
journalctl --user -u duotape-session -n 100.
Read each of these before you paste it, and leave out what is private. duotape doctor, duotape status and the
journal show device names and paths, and a meeting's title appears in its folder's name. Don't attach a recording or
a transcript, and don't paste the .ffmpeg.log unless you are asked for it.
For a security problem, don't open an issue: follow SECURITY.md.
Uninstall
First remove what duotape set up in your home folder, while the command is still there:
duotape uninstall-desktop # stops the tray app; removes the launcher entry, the icons, the OBS control script
# and the GNOME shortcut
Then the command itself, the way it was installed:
| Installed | Remove with |
|---|---|
| with pipx | pipx uninstall duotape |
| as a Debian package | sudo apt remove duotape |
| from the AUR | sudo pacman -R duotape |
duotape uninstall-desktop --purge-config also removes ~/.config/duotape, unless that folder is a symbolic link
(remove the link and its target yourself). --remove-obs-profile also removes OBS's Meeting profile and
collection, with their backups, but only while OBS is closed and only if the collection still loads duotape's control
script; a profile of your own that the config names is left alone (remove it in OBS's Profile and Scene Collection
menus). When it keeps the OBS profile, --purge-config keeps the config too, since the config names that profile:
close OBS and run the command again. duotape uninstall-desktop also removes the tray app's autostart entry
(~/.config/autostart/duotape.desktop) when that runs duotape, and keeps it, saying so, when it runs something
else. Recordings are never touched, and neither is anything else in
~/.local/share/duotape, such as a whisper.cpp build.
Prior art
- tapeback: mic and the other side as two channels, a StatusNotifierItem tray, and faster-whisper (CUDA or CPU). Its tray's protocol coverage informed duotape's.
- omarchy-meeting-recorder: separate tracks and whisper.cpp on Vulkan, in a GTK app for Hyprland.
- gpu-screen-recorder: a lighter video backend, worth adding for systems without OBS.
duotape adds two things to these: screen video, and systemd supervision with a fail-closed stop, on any desktop with a GPU whisper.cpp.
Development
uv run --offline --no-project --python /usr/bin/python3 --with pytest pytest -q # tests (drop --offline once)
ruff check src tests packaging && ruff format --check src tests packaging
shellcheck src/duotape/data/*.sh .github/scripts/*.sh packaging/deb/postinst packaging/deb/prerm
uvx zizmor --offline .github/workflows/ # a security audit of the workflows; CI pins its version
bash .github/scripts/build-distributions.sh # the sdist, the wheel and the .deb, in dist/ (needs uv, git and dpkg-deb)
bin/duotape … runs the checkout itself, without installing it. bin/duotape install-desktop points the launcher
entry at it.
Tests that need something the machine may not have skip without it: ffmpeg, PyGObject, dbus-daemon,
desktop-file-validate, PyYAML (the issue form's test), and luajit for the OBS control script's tests (tests/lua/,
which run the real script against a stand-in for OBS's obslua). The issue form's test also skips in the sdist, which
has no .github.
CI (.github/workflows/ci.yml) runs on every pull request:
- the tests on Ubuntu 26.04, Debian 13, Fedora 45 and Arch, each with its own Python and PyGObject, as an unprivileged
user (
.github/scripts/); - the tests on Python 3.11, the oldest version supported, and 3.12, without PyGObject;
- ruff, shellcheck, zizmor on the workflows, and a LuaJIT compile of the control script;
- the packages: the sdist, the wheel, and a Debian package made from the wheel by
packaging/deb/build_deb.py, all dated from the commit so that a rebuild gives the same bytes. The.debis installed, run and purged on Debian 13 and Ubuntu 26.04, and the wheel is installed with pipx as the install section describes. On Arch, makepkg builds the AUR package (packaging/aur/) from the sdist, running the tests, then it is installed, run and removed.
Pushing a tag v<version> runs .github/workflows/release.yml. It runs CI on the tagged commit, checks that the tag
matches the package's version and that CHANGELOG.md has a section for it, then publishes the files CI built and
installed: the sdist and the wheel to PyPI through trusted publishing, and all three to a GitHub release with
SHA256SUMS and that section as its notes (packaging/release_notes.py).
To run a distribution's job locally, build an image from .github/scripts/install-test-packages.sh and run
.github/scripts/run-tests-unprivileged.sh in it from the checkout.
A change that a user would notice gets a line under ## [Unreleased] in
CHANGELOG.md. To release:
- Rename that heading to
## [<version>] - <date>. - Set the same version in
src/duotape/__init__.pyand aspkgverinpackaging/aur/PKGBUILD, withpkgrel=1, and regeneratepackaging/aur/.SRCINFOwithmakepkg --printsrcinfo. Tests hold the PKGBUILD and.SRCINFOto that version. - Tag the commit
v<version>and push the tag. - Once the release is on PyPI, set the PKGBUILD's checksum with
updpkgsums, regenerate.SRCINFO, commit both, and push them to the AUR'sduotaperepository.
License
Apache-2.0. See LICENSE.
Metadata
Release files for duotape 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| duotape-0.1.0.tar.gz | 506.8 kB | With provenance | Details for duotape-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| duotape-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for duotape-0.1.0-py3-none-any.whl |
Total release size: 759.0 kB
Release files / duotape-0.1.0.tar.gz
| Download URL | duotape-0.1.0.tar.gz |
|---|---|
| Size | 506.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46671abbb280e565ba9a25289211dd4575734e58adc229a6785a63299f8ac4f4
|
|
BLAKE2b-256 checksum How to use checksums |
a68c989c311f7e90260dbe093e8ac0cb7aa3862528a26a65424d2d3be7cc1a1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / duotape-0.1.0-py3-none-any.whl
| Download URL | duotape-0.1.0-py3-none-any.whl |
|---|---|
| Size | 252.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
017f0f61a01f864e4eb96c3a0f58a6216229cf50ce5c1facaa0f63e481b9d12f
|
|
BLAKE2b-256 checksum How to use checksums |
dcf3b44db00d5d8c77309daaf25aee7df2e8c2008bec80f28fca23a431e8b007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for duotape 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for duotape-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.