48 4
Contact Author Sign in to rate

anki-forvo-dl - Forvo Pronunciation Downloader (fully automatic)

0.05MB. Updated 2021-10-02. Only supports Anki 2.1.x.

Description

An add-on that allows you to add Forvo.com pronunciations to your anki cards - fully automatically Usage 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 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 As of the newest version, there's a config manager! Just click on Tools>anki-forvo-dl>Preferences to open it. For deck-specific or note type-specific settings select your deck / note type first and adjust the settings to your liking. Liability I am not liable for the plugin to work as described or for the actual download process. This plugin retrieves the audio files as if you would click on the audio preview button on Forvo, which falls under web scraping. Forvo doesn't mention web scraping in their Terms of Service so I believe that this is allowed, since it's as if you'd go there manually, just automated. Please create a backup of your anki folder before using it (just in case!) 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, as I do not get notified when anyone posts something here. If you have questions, comments or feedback, you can post it here: https://github.com/realmayus/anki_forvo_dl/discussions

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:

858591644

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 1638433789
Amazing add-on. I was thinking of writing this myself, and instead found this very well-designed solution that's easy to use and works well.
on 1637537902
A method to scrape all Forvo pronunciations is available : https://forum.freemdict.com/t/topic/8100 (registration required because is a private topic).

Almost 6 million audio files can be scraped. If someone is interested in scraping it, please follow the instructions in the above post. It is very easy to obtain all the pronunciations for your target language.

Forvo is restricting more and more the downloads of their audios. Check the full description of Forvo's restrictions here:

https://en.wikipedia.org/wiki/Forvo
on 1637345411
Super useful add-on, great for vocabulary cards! I'm excited to see bulk possibly being brought back (crossing my fingers that implementing the delay between downloads prevents the IP bans!)

Many thanks to the developer for continuing to work on this!
on 1636677568
Despite the thumbs up for the addon, the bulk addon removal hurt my soul so really I'm more neutral then anything. Also I used the addon quite a bit like 60/day and cant see how anyone even got their IP's banned cause what do you even need more then 60 cards a day for if you learning vocab.
One improvement I guess you could do is make the search more specific i.e. so that it can ignore pronouns in the card. For example, the word el rey (king) would have no audio but rey would have audio. I encountered this issue maaaany times and always have to remove the pronoun->search->get audio->and copy it back in. Either way thanks for when it was alive was real useful.
-Again RIP bulk downloader.

Edit:
Happy to see its back lol (well coming back lol)
Comment from author before post was edited
Thanks for the feedback! I have support for RegExes on the roadmap, which should allow users to remove these kinds of words (I'll of course add a small tutorial for those who aren't very tech-savvy). Right now, there's only a basic text replacement feature, however, that should work with articles and pronouns, as long as you include the space at the end (so that it doesn't remove the characters 'el' if they're part of a word).

As for the bulk downloader, I've decided on bringing it back with more delays and other improvements as soon as I have time!
on 1636348416
So far, so good.
on 1635989060
I hate to give a negative rating but the removal of the bulk add feature makes this nearly useless for someone who bulk adds cards.

Why not just increase time between requests?

What's the different between me having to spend 30 minutes manually navigating to each card to separately click download for 100 cards, and simply making 30 seconds between each request for bulk?

That makes so much more sense, and the user can just set and forget. Go and read a book or do something useful while downloads happen slowly, I don't think anyone would complain about that if there is a popup dialog explaining why.

-----Edit:-----
Thanks for the quick reply, that's awesome!
Comment from author before post was edited
Thanks for the feedback. I understand your criticism and agree with you, it's not much different from going to the site manually if there's a long enough delay. I'll implement an improved version of the bulk-add dialog as soon as I have some time to work on the project!
on 1633477379
Love it but ever since author decided to become an ethical eddie I am really missing bulk add. Luckily you can just use git to revert to an older version of the project. works fine.

go to addon folder and clone the repo

then just run

git checkout 386c78de880c4c3160caa013dc1767384fac73e6

boom bulk is back.
on 1632833520
This is an impressive add-on, saving me a ton a time vs. manual searching on Forvo, and is also much quicker to use than the other simple Forvo add-on. Highly recommended!
on 1632829058
Fantastic addon that enables me to quickly add native audio to my cards rather than AI-generated TTS. The developer is really quick to fix issues too. Thanks! :)
Comment from author before post was edited
Thanks for the report! I just published an update, which should hopefully fix the issue.
on 1632796683
Thanks for your awesome add-on. And thanks for implementing the new button that better fits the new version of Anki. The dev really cares about people's feedback! 👍
on 1632788050
The recent update broke the add-on.
Comment from author before post was edited
Thanks for the report! I just published an update, which should hopefully fix the issue.
on 1632787418
I wish you could more easily adjust the input and output fields, and on a per note type basis, but otherwise one of the most critical addons in my path of progress.
on 1632785359
Great tool that I have been using a long time but the newest update just broke its functionality.

*Update 9/27: WORKING. Dev is amazing and very professional, responsive, and quick with patching. Works like a charm now! Thank you realmayus!!
Comment from author
Thanks for the praise!!
on 1632775093
I love this addon, it was just the best.
Unfortunately, since the last update the best function of them all, stopped working.
Bring the bulk download back, otherwise this extension is now worthless!
Just bring back the last version! (and no, the last update you published did not solve anything!)
Comment from author
Thanks for the feedback. I completely understand that this change is controversial, as it was one of the main selling features of the plugin. However, I think it's only morally acceptable to remove the feature, as many people have gotten their IPs banned by using it (despite various delays I've implemented). I think it's a fair compromise to keep the core functionality, which is getting audio files automatically from Forvo. Scraping each audio file individually is more justifiable than shoving a 30,000 cards deck through the plugin, overloading Forvo's servers and risk getting people's IPs banned.

Here's the github issue discussing the topic: https://github.com/realmayus/anki_forvo_dl/issues/41
on 1632734774
Recent update update make the add-on unworkable..It is now broken.
Comment from author
Thanks for the report! I just published an update, which should hopefully fix the issue.
on 1632644725
It's a great add-on and it saves me a lot of time, but I had to revert the update back because it wouldn't start anymore. The configmanager is asking for a non-existent file it seems. Here is the log:

When loading '⁨anki-forvo-dl - Forvo Pronunciation Downloader fully automatic⁩':
⁨Traceback (most recent call last):
File "aqt\addons.py", line 211, in loadAddons
File "C:\Users\User\AppData\Roaming\Anki2\addons21\858591644\__init__.py", line 17, in <module>
from .ConfigManager import ConfigManager
File "C:\Users\User\AppData\Roaming\Anki2\addons21\858591644\ConfigManager.py", line 8, in <module>
from anki_forvo_dl import Config, ConfigObject, OptionType
ModuleNotFoundError: No module named 'anki_forvo_dl'
Comment from author
Thanks for the report! I just published an update, which should hopefully fix the issue.
on 1631868960
Doesn't work with sentence cards
Comment from author
The plugin only works with words that are on Forvo. If there's a sentence which you want to add that is not on Forvo, the plugin will not yield any results.
on 1631196793
Added, but doesn't work, constant message about error occurrence and asks for Anki restart which doesn't help.
Comment from author
Hi there, I just published a new version which should (hopefully) resolve your issue!
on 1630801180
Excellent add-on with batch add feature
on 1630525478
Fantastic
on 1629673879
Works as intended. Thank you so much!
on 1628935242
Amazing work. Big thumbs up for author
on 1628556393
First add-on that has worked smoothly for me. Perfect, brilliant, 11/10.
on 1627577636
Good
on 1625379657
Excellent add-on! Thanks!
on 1625365430
Thank you so much for your work, this is really amazing!!
on 1624962309
THIS IS SO GOOD!
on 1624341467
Amazing extension. Works perfectly, and the UI is nice and polished. Thank you so much for your work!
on 1623426270
Amazing, this is soo useful, thank you!
on 1623382777
Just tested it out and WOW! This will be a HUGE time saver! Thank you :D
on 1622286445
So easy to use, and has a very simple interface
on 1622122801
very useful addon
on 1622062551
Very intuitive setup and interface. It's very easy to use and saves seconds at a time that add up over the course of hundreds or thousands of cards. Thanks so much for making this!
on 1621542461
If you use Forvo, this is really useful!
on 1620506265
Love the addon. However, suddenly, it has stopped working. This is the error message:

Debug info:
Anki 2.1.35 (84dcaa86) Python 3.9.4 Qt 5.15.2 PyQt 5.15.4
Platform: Linux
Flags: frz=False ao=True sv=1
Add-ons, last update check: 2021-05-08 13:48:30
Add-ons possibly involved: ⁨anki-forvo-dl Forvo Downloader fully automatic with bulk-add mode⁩

Caught exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/aqt/webview.py", line 37, in cmd
return json.dumps(self.onCmd(str))
File "/usr/lib/python3.9/site-packages/aqt/webview.py", line 123, in _onCmd
return self._onBridgeCmd(str)
File "/usr/lib/python3.9/site-packages/aqt/webview.py", line 547, in _onBridgeCmd
return self.onBridgeCmd(cmd)
File "/usr/lib/python3.9/site-packages/aqt/editor.py", line 418, in onBridgeCmd
self._links[cmd](self)
File "/home/kal/.local/share/Anki2/addons21/858591644/__init__.py", line 164, in on_editor_btn_click
proceed(config_lang.value)
File "/home/kal/.local/share/Anki2/addons21/858591644/__init__.py", line 99, in proceed
raise Exception()
Exception

EDIT: Okay apparently my IP was banned, presumably for making too many audio requests. Had to use a VPN to make it work again.
on 1619263925
amazing app, saves a lot of time. Thank you very much !
on 1618885669
Works wonderfully, I really needed this add on
on 1618617735
Does it work on mobile ?
on 1618459794
amazing
on 1617834839
Thanks god
on 1617807902
Danke!!!
on 1616569745
Great!

Yet, I'm confused: I thought I'd have to enter my forvo login somewhere …
How does the Addon download without any account credentials of the user?
on 1616349479
Amazing, easy to use.
on 1615661291
It's beautiful!
on 1613343993
It's excellent, user friendly and beautiful. Would like to have the option to download multiple files if possible, it's nice to hear the words in a variety of different voices.
Comment from author
Thanks a lot! I'll consider adding that feature 👍
on 1613254658
I nearly had a heart attack when I noticed this wasn't working. lol. So glad y'all fixed it. Im not lying, this is one the best add ons on Forvo, this saves me so much time do this manually. Thanks
Comment from author before post was edited
I just fixed the bug, it should be working again now, thanks for reporting :)
on 1613206989
Great! It helps a lot!
on 1612042898
This is saving me so much time, thank you.
Comment from author
Glad that it helped you :)
on 1612034366
Works awesome!
Comment from author
Glad that you like it! :)
on 1612033303
Beautifully made, simple to use, and extremely useful!
Comment from author
Thank you! :)
on 1612028160
it works perfectly
Really nice !!
Thank you very much
Comment from author
That's nice to hear; you're welcome! :)
on 1612013019
Works perfectly. Great work !
Comment from author
Thank you! :)