1 0
Contact Author Sign in to rate

Debug No Sound

<10kB. Updated 2020-08-21. Only supports Anki 2.1.x.
The author has shared 32 other item(s).

Description

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>

Download

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:

881480056

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

All Anki 2.1.x Add-Ons Contact Author

Reviews

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.