This version is badly hacked together from the files of a previous release on AnkiWeb so long as it works. Converts ogg to mp3. Depends on FFmpeg and FFprobe binaries in the pydub directory (not included).
An add-on that allows you to (bulk-) add Forvo.com pronunciations to your anki cards - fully automatically
The add-on has two modes:
- A single-add mode
- A bulk-add mode
Forvo offers their service for free, so please be kind and don't use the bulk-add feature regularly to avoid that Forvo's servers get nuked. There is a delay of a second between the downloads to protect them. Try to download the audios as you create them, using the blue Forvo button in the editor.
You can download the plugin using anki. Open the add-on manager by clicking Tools > Add-ons and press "Get Add-ons...".
Then paste this code in the window: 858591644
The add-on's download page can be found here: https://ankiweb.net/shared/info/858591644
Using the single-add mode
When you add or edit a card, you will notice the blue Forvo button in the editor window. If you click that, anki-forvo-dl will ask you to select some fields and a language if not done already. Afterwards, you will be presented with a dialog window that shows you a list of all available pronunciations. If you click on the play button on the left of a pronunciation, you can listen to the audio. To select a pronunciation, click the checkmark icon.
You can also hold down the shift key when pressing the blue Forvo button in the editor to automatically select the pronunciation with the most votes.
Other shortcuts:
- ctrl + F: Open forvo window
- ctrl + shift + F: Add top pronunciation
Using the bulk-add mode
The power of anki-forvo-dl is the bulk-add mode: Select your cards and lean back while letting the add-on do its job. In order to select your cards, go to the card browser and select all the ones you wish to add audio to. Right click on the selection and choose "Bulk add Forvo audio to X cards". A dialog will pop up. If anki-forvo-dl doesn't know the fields and/or languages of the selected cards already, you will be prompted to select the fields for every note type your selected cards use and will be asked to select the language for all decks that are unknown to anki-forvo-dl. Because you can cards from multiple decks and note types in the browser, it is possible that you will have to do this multiple times to address all different note types and languages.
Field selection
When adding audio to a card with a note type for the first time, anki-forvo-dl will ask you to select two fields: The search field, whose contents will be used to search on Forvo and the audio field, where the audio string will be placed in ([audio:XYZ.mp3]). By default, anki-forvo-dl will append the audio string to the existing contents of the audio field. If you want to change that, see the "Editing the config" section.
Language selection
When adding audio to a card that's part of a deck that isn't known by anki-forvo-dl, it will ask you to select the deck's language so that only relevant pronunciations will be available as results. You can either type in the language in English and hit enter or select it from the list you will be presented with. If you want to change the language later, see the "Editing the config" section
Editing the config
Note: As of now, you will have to edit the config manually. To do that, go to Tools > Add-ons > Select anki_forvo_dl > View Files. Then open the user_files directory and open the config.json file.
Liability
I am not liable for the plugin to work as described or for the downloads. Please create a backup of your anki folder before using it (just in case!) You are responsbile for what you download with the add-on. It is simply automating what you would normally do to download these audios. For the license, see: https://github.com/realmayus/anki_forvo_dl/blob/main/LICENSE The source code is available here: https://github.com/realmayus/anki_forvo_dl
Please only report bugs through the GitHub issue tracker, NOT through reviews. If you have questions, comments or feedback, you can post it here: https://github.com/realmayus/anki_forvo_dl/discussions