Anki add-on: Zzz (legacy) No Sound Debug

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>