Anki add-on: Auto Advance (automatically show answer & flip card & audio play repeat & speed)

This add-on has similar features with Ankimobile's auto advance feature. wait for audio to finish playing. automatically show answer. automatically choose <Hard> or <Good> and then flip card. repeat specified audio field at specified play speed. e.g. repeat_field = {"发音":[0.7,1.5,2.6]} , repeat 3 times at different speed slow down or speed up some selected audio files while playing. mode 1: play all audios (Normal study) mode 0: only play selected audio. (Usually used for Custom Study Session. e.g. quickly review all the cards you learned today) New Features. Repeat audio play at differnt play speed. e.g. {"voice":[0.5],"sentence":[1.5,2]} means: any audio in "voice" field will be played once at audio speed 0.5 and any audio in "sentence" field will be played twice, one at speed 1.5 and the other at speed 2 Only play selected audio at specified speed e.g. mode_0_field = {"发音":[-1]} -1 means play audio file at default speed once Slow down or speed up some selected audio files while playing. Shortcuts: Slow down "[" or speed up "]" audio play speed. Add automatically select Hard or Good while reviewing. Used a lot on Mac OS . On Linux this add-on works as well as on Mac OS (tested on Ubuntu). Windows version works , but all speed setting will be ignored. It means all audios will be played with correct repeat times but only at speed 1. I don't use Anki on Windows, so please feel free to add any new features. https://github.com/yu7777/Auto-Advance--Anki_addon- Updated 2019 Oct 06 temporary toggle Anki's autoplay. Now this addon works with Anki's autoplay peacefully. 2019 Oct 08 fix some bugs. version 1.2 2019 Oct 09 fix autoplay bugs. fix mode 0 (only play first audio). version 1.5 2019 Oct 11 improve wait-for-audio. version 1.6 2019 Oct 13 add config feature. Now you can modify config in Anki's AddonManager. version 1.8 2019 Oct 14 add config. md. version 1.9 2019 Oct 16 support Windows OS. Now this add-on also works under Windows OS. Tested on Windows 10 2019 Oct 17 fix a bug. Tidy config. md. version 2.0 2019 Oct 27 fix a bug. Use tooltip to show hints 2019 Oct 29 add temporary_answer_addition_time. version 2.1 2019 Nov 22 some minor changes. version 2.2 I am so happy that I finally finished this add-on. Please enjoy it. 😀😀😀😀😀😀 Tips You can use shortcut "j" to start Auto Advance play mode BEFORE you enter your deck and click "Study Now". If you start Auto Advance play mode when you are reviewing a card, then the first card will not be working as it should be with this add-on. Not sure if this is a bug. Please feel free to modify code on GitHub. Anytime you can use shortcut "k" to stop Auto Advance play mode. Use "[" or "]" to decrease or increase your audio play speed. This works all the time even though you don't use Auto Advance play mode. Use Custom Study and Mode 0 to quickly review the cards (e.g. cards you learned today). When you modify config on Anki's addonManager, you need load this new config to addon. This can be done by clicking load config in menu Tools>>Auto Advance>>Load config. Otherwise the addon will keep using old config. When you Stop Auto Advance, the currently used config will be saved automatically. Menu and Shortcuts Usage Press j or Ctrl+j to start the add on. Press k or Ctrl+k to stop it. Press Shift-D to add silence after front card. Press Shift-F to add silence after back card. Press Shift-J to add silence after both front and back cards. Press [ to decrease the speeds of cards' audios. Press ] to increase the speeds of cards' audios. Press g to toggle default choice: Hard or Good This Addon is a revised version of Automatically flip cards https://ankiweb.net/shared/info/631932779

GitHub repository: yu7777/auto-advance--anki_addon-
Languages: Python