Bỏ qua đến nội dung

Zzz (legacy) No Sound Debug

Chờ xử lý #anki #addon #zzz #legacy #sound #debug
https://forums.ankiweb.net/
20/8/2020

Cách tải addon Zzz (legacy) No Sound Debug

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

881480056

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 881480056 và copy

2

Mô tả chi tiết

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>


Liên kết hỗ trợ


Reviews (2)

👍 2021-07-29

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.

👍 2020-09-09

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.