2 0
Contact Author Sign in to rate

Zzz (legacy) No Sound Debug

<10kB. Updated 2020-08-21.
The author has shared 37 other item(s).


Don't restart mpv to prevent creating a new log file and maybe help to debug why there's no sound. After installing the add-on, don't restart Anki immediately, but at first open the Debug Console, copy-paste the following code and press Ctrl+Return or Cmd+Return on Mac, close the Debug Console window and restart Anki. https://docs.ankiweb.net/#/misc?id=debug-console Run this code only once, i.e. there's no need to run it again after restarting Anki. Once there's no sound, maybe in a day or a week, and clicking on the replay button a few times does nothing, look at the last lines in the log file or send it to me by email or upload on https://gofile.io/ and create a post on https://forums.ankiweb.net/ The log file will be saved alongside with mpv.conf in the Anki2 folder - https://docs.ankiweb.net/#/files?id=file-locations import os from aqt import mw from aqt.sound import mpvManager logfile = os.path.join(mw.pm.base, 'mpv.debug.log.txt') path = os.path.expanduser(logfile) with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f: f.write('log-file={}\n'.format(path)) print('log-file:', mpvManager.get_property('log-file')) mpvManager.shutdown() print('log-file:', mpvManager.get_property('log-file')) Nickolay <kelciour@gmail.com>


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools->Add-ons menu item, then click on Get Add-ons and paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1627602620
Anki was usually failing to start because I had too many fonts installed, making mpv sometimes take over a second to load, restarting in a loop until it either succeeded or anki silently quit after 4 minutes. This addon is responsible for it reliably loading for me now that I went back to just standard system fonts.
on 1599641705
Once the matter has been resolved, does one simply:

* delete the Add-On
* delete the 2 files (mpv.conf, mpv.debug.log.txt)

or is there a further procedure to stop/reverse the actions of the Add-On?

(I'm on a Mac)
Thanks, and greetings from a 'Noob' ;)
Comment from author
Yes, this will work.