Card audio playback ?changes ?bug in 2.1.2x

samir.yep's Avatar


01 May, 2020 05:26 PM


I have recently made the move to 2.1.25 from 2.0 and I am noticing 2 changes with cards containing audio (in this case, foreign language sentences)

1) There is a delay between a new card being shown and the audio associated with that card being played (especially noticeable compared to 2.0)

2) On 2.0 if you rated a card containing audio before the audio had finished, the previous card's audio would stop and if the next card had audio it would start instead. 2.1 forces the previous card's audio to finish before stopping to allow you to focus on the next card or playing the next card's audio if it is there

Were these changes made on purpose or are they bugs? I much preferred the settings in 2.0 as 2.1 significantly slows down my overall review time.

Best wishes,

  1. Support Staff 1 Posted by Damien Elmes on 01 May, 2020 11:43 PM

    Damien Elmes's Avatar

    Did you download the standard or alternate version of Anki? The standard version should behave like earlier versions on a Mac.

    To have audio interrupted, please make sure the interrupt audio option is enabled in the preferences screen.

  2. 2 Posted by samir.yep on 02 May, 2020 09:36 AM

    samir.yep's Avatar

    Thank you for getting back to me so quickly. Apologies for not looking more into the audio interrupted setting before messaging. Regarding the audio delay issue though I do have the standard version of Anki (Version 2.1.25 (898801eb)) on Mac (Catalina). I just compared the audio onset lag with 2.0 (Version 2.0.50) and there is a definite difference. Even if I wait for the previous card's audio to be completed rather than interrupting it, the next card's audio on 2.0 plays instantly whereas on 2.1 there is what I approximately measure as being a 1 second lag (which is even longer when I interrupt the previous card's audio).

  3. 3 Posted by samir.yep on 02 May, 2020 10:19 AM

    samir.yep's Avatar

    I've also noticed that the delay in 2.1 vs 2.0 is also noticeable when pressing "r" to repeat the audio; in 2.0 the replay is immediate whereas in 2.1 there is a significant delay

  4. 4 Posted by addons_zz on 03 May, 2020 05:10 AM

    addons_zz's Avatar

    @dae, it could be that mplayer Anki 2.0 is a different version from Anki 2.1, which is taking longer to start playing the audio? Or could be because Anki 2.1 uses qtwebengine while Anki 2.0 uses qtwebkit?

    @dae do you have access to a Mac OS and can reproduce the problem? If not, I would ask if @samir.yep can run anki from the source code with some debugging code I would add to find from where the performance bottleneck might be coming from.

  5. 5 Posted by samir.yep on 03 May, 2020 08:46 PM

    samir.yep's Avatar

    Dear addons_zz,

    Thanks for getting back to me. I would be happy to run anki from the source code with your debugging code.


  6. 6 Posted by addons_zz on 03 May, 2020 11:51 PM

    addons_zz's Avatar
    1. Backup your collection
    2. First install the required packages for Mac OS with the command brew install portaudio protobuf gettext ripgrep make python3
    3. Now you can download anki python wheels from:
    4. After that, unzip the file into a new directory and open a command line on the new directory and install all wheels with python3 -m pip install *
    5. After installing Anki, run it using the command python3 -c "import aqt;" --benchmark 10000
    6. After opening Anki from the command line, review some cards reproducing the problem and close anki.
    7. After closing anki, it will print to your terminal the results of the benchmark, then, copy-paste these results here. They will look like this:
              9012 function calls (8896 primitive calls) in 7.104 seconds
      Ordered by: internal time
      ncalls  tottime  percall  cumtime  percall filename:lineno(function)
         1    3.827    3.827    4.344    4.344 {built-in method exec}
         3    1.424    0.475    1.429    0.476 F:\anki\qt\aqt\
         1    0.773    0.773    0.773    0.773 F:\anki\qt\
        17    0.370    0.022    0.370    0.022 {method 'acquire' of '_thread.lock' objects}
         1    0.188    0.188    0.188    0.188 {built-in method setHtml}
         1    0.107    0.107    0.107    0.107 {built-in method show}
         1    0.071    0.071    0.087    0.087 F:\anki\qt\aqt\forms\
  7. Support Staff 7 Posted by Damien Elmes on 04 May, 2020 02:08 AM

    Damien Elmes's Avatar

    I don't see any delays playing audio on a Mac system here. Samir: To confirm, in 2.1.25 the about screen says Qt is 5.13? If so, please try 2.1.15 and let me know if the problem persists.

  8. 8 Posted by samir.yep on 23 May, 2020 03:30 PM

    samir.yep's Avatar

    Dear Damien, The about screen says: Python 3.8.0 Qt 5.13.1 PyQt 5.14.1. The delay also persists on 2.1.26 and 2.1.15.

    Regarding running the debugging code, apologies for the delay. I have been unable to figure out how to run anki from the command line. I got to the "python3 -m pip install *" stage and get the following error:

    ERROR: Could not find a version that satisfies the requirement (from versions: none)
    ERROR: No matching distribution found for

  9. 9 Posted by Mateus Pismel on 23 May, 2020 06:07 PM

    Mateus Pismel's Avatar

    Não consigo adicionar áudio, estava funcionando normalmente e do nada parou de funcionar.

  10. Support Staff 10 Posted by Damien Elmes on 25 May, 2020 03:07 AM

    Damien Elmes's Avatar

    samir: I've reposted this on the following page - maybe another dev will be able to help:

    Mateus: add-on issues need to be posted on the add-ons section.

  11. 11 Posted by samir.yep on 25 May, 2020 11:56 PM

    samir.yep's Avatar

    Dear Damien, thank you once again for your continued support!

  12. 12 Posted by addons_zz on 28 May, 2020 12:24 AM

    addons_zz's Avatar

    @samir I got to the "python3 -m pip install *" stage and get the following error

    Try running sudo -H python -m ensurepip or sudo -H python3 -m ensurepip

    More information on: How do I install pip on macOS or OS X?

  13. 13 Posted by Marco Antônio d... on 28 May, 2020 01:23 AM

    Marco Antônio da's Avatar

    Boa noite!
    O áudio do Anki (celular) grava em velocidade alta ( e fina).

  14. 14 Posted by addons_zz on 28 May, 2020 01:30 AM

    addons_zz's Avatar

    @Marco are you using an Android or Iphone?

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac