Anki add-on: Audio Waveform Trimmer

Audio Waveform Trimmer An Anki 2.1 add-on that adds a built-in waveform trimmer for audio files in your cards. Features Waveform viewer — click the Audio button or press Ctrl+E in the card editor Drag handles — set left and right trim boundaries directly on the waveform Precise input — spinboxes for second-by-second time control Preview playback — hear the trimmed result before committing, using ffplay Lossless trim — commits with ffmpeg -c copy (fast, no re-encoding) Only the first [sound:...] in the configured field is edited; additional audio files are left untouched. Requirements Anki 2.1 (tested on Anki 24.04+) ffmpeg , ffprobe , and ffplay installed and available in PATH Configuration Via Tools → Add-ons → Audio Waveform Trimmer → Config : | Key | Default | Purpose | | shortcut | "Ctrl+E" | Keyboard shortcut in the editor | | audio_field_name | "Audio" | Field name with [sound:...] tags | Usage Open the card editor (Add or Browse) Click the Audio toolbar button or press Ctrl+E Drag the red handles on the waveform to set trim boundaries Click Play Selection to preview the trimmed audio Click Trim & Save to commit (replaces the file in-place) Editing is non-destructive until you hit Trim & Save . Diagnostics Run Tools → Edit Audio: Run Diagnostics to verify ffmpeg , media paths, and field configuration. License GNU Affero General Public License v3.0 or later. URL https://github.com/WilsonNet/anki-audio-waveform-trimmer

GitHub repository: wilsonnet/anki-audio-waveform-trimmer
Languages: Python