After updating (from I think 24.11) to 25.02.1, audio does not seem play for flash cards. Neither autoplay nor selecting the replay audio action results in sound being played.
Audio does still work on my phone in general. I tried restarting and the issue persisted.
Reverting to 24.11 on desktop has audio working and confirms that this is a regression with the 25.02, I will roll back my phone as well. I am busy and will be unable to look for the cause of this until later tomorrow.
Reverting to 24.11 on my phone also fixed the issue there. Perhaps this release should be yanked on iOS until a bugfix is found given the level of difficulty of reverting the version there.
Can you give us more information about what audio files arenât working on 25.02? There arenât any documented changes to supported media types â Release 25.02 · ankitects/anki · GitHub . If you can give me the filename of a file that fails in 25.02, I can take a look at it.
What about your notes and templates? Are these files stored in standard [sound:...] tags, or are you using custom scripts with them?
What is happening instead when you click play? Any apparent reaction in the app?
Have you tried any of these notes on AnkiWeb to see if they play?
All the audio files I tested are mp3 probably around 3 - 7 KB uncompressed. Check out the media èčæ_google_zh-CN.mp3 for example. This is used in note with id 1624587685619 card with id 1624587685619 in my deck called c. I wonder if some encoding thing changed and now the èčæ there is getting encoded differently than it was before and so a file lookup is failing. Although the check media tool doesnât show any issues. I will be able to run this in a debugger tomorrow and take a look.
The audio is stored in the standard format, the above note for example it is referenced as [sound:èčæ_google_zh-CN.mp3].
There is seemingly no reaction when I try to play the audio from within Anki, no errors or anything. No messages on terminal either.
I have tried them on AnkiWeb and no luck there either.
The Chinese support addon places the sound tag in a comment in the default card type, see:
<!-- {{Sound}}-->
This is Hyrumâs Law at its finest and feels a little tricky. The addon arguably shouldnât be expecting tags in comments to be templatized and parsed, instead it should hide the sound field in an element with display: none⊠but the damage is already done.
I will open a PR updating the addon but from my work with it in the past, there might be some difficulty getting it merged due to inactivity around supporing it. There might be a large horde of Chinese learners who appear in the forums complaining their audio suddenly stopped working.
Hi @kieran, thanks for debugging and finding the issue!
I saw your PR on GitHub. Until this is submitted, do you have any instructions on how to manually fix the issue until your PR is approved?
I imagine users of the extension could manually patch the fix into the template locally on desktop and then sync all their cards. Or would that require us to manually update each existing card?
Hi @emmetm, happy to provide instructions. Anki is architected in a pretty clever way which nicely separates the contents of the cards from the layout of the cards, this means it is easy to make a change and doesnât require manually updating each card or anything.
Select the Chinese card type in the Note Types popup. This will either be Chinese (Basic) or Chinese (Advanced) or both. I will show how to do it for the Basic note type here but it is the same for Advanced.
One thing I noticed today - only half the cards seem to play sound during a session. It seems pretty random to me - a mix of cards before/after I updated the template, older/newer cards, etc. Itâs also always the same cards between app restarts and reviews.
Any clue what could be the cause?
Iâve shared a copy of my deck if it helps. Thanks!
Nice catch - indeed there are two cards generated from a note, I had updated the first but not the second!
For others, make sure you apply the back card change/styling to both card types, by changing the card template under Tools > Manage Note Types > Cards like so: