WHAT’S HAPPENING: Audio set in the front of card is being played on the back, but only in the preview screen. It ONLY happens while as a pop-out preview in the card browser. To be explicit:
- It DOES NOT happen during normal reviews
- It DOES NOT happen while editing the card template, i.e. “Card Types for %CARDNAME%” window
- It DOES happen in preview windows, i.e. CTRL+SHIFT+P in card browser
OFFENDING CODE: I’ve written the following into my front card template.
<audio>[sound:_buffer70.mp3][sound:_wake1.mp3][sound:_buffer70.mp3][sound:_wake1.mp3][sound:_buffer70.mp3][sound:_wake2.mp3]</audio>
INTENT: What I’m trying to do is have audio not associated with any fields play at set intervals to ‘wake me up’ in cases were I get sidetracked start day dreaming during reviews, e.g. 7s silence, alert, 7s silence, alert, etc. And it does indeed work, but the behavior is wonky in preview windows - which happens to be very annoying while I’m editing cards after review sessions.
I’ll fully admit the code might be garbage; I just hacked stuff together until something worked. I was having trouble finding out how to use <audio> correctly, since every search engine I’ve tried has ignored the brackets and made searching about it impossible. I could share a few cards as examples, but I’m not sure if there’s a preferred sharing method on the forums.
Oh, and I don’t think it’ll matter, but here’s my debug info:
Anki 26.08.1 (39e4b0b4) (ao)
Python 3.13.13 Qt 6.11.1 PyQt 6.11.0
Platform: Linux-6.8.0-55-generic-x86_64-with-glibc2.42
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Browser [‘874215009’, 2024-10-27T09:20, ‘None’, ‘’]
Advanced Copy Fields [‘1898445115’, 2024-01-08T11:01, ‘v0.4.01’, ‘’]
AnkiConnect [‘2055492159’, 2025-11-09T13:40, ‘None’, mod]
Customize Keyboard Shortcuts [‘24411424’, 2023-11-01T04:17, ‘None’, mod]
Reviewer Context Menu Search [‘359618071’, 2019-02-10T11:01, ‘None’, ‘’]
===IDs of active AnkiWeb add-ons===
1898445115 2055492159 24411424 359618071 874215009
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])