84 10
Contact Author Sign in to rate

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

0.05MB. Updated 2022-07-31.

Description

The add-on currently is dysfunctional.I am investigating the issue, but it seems like the previous way of downloading the pronunciation files won't work anymore. If this turns out to be true, it means that users will have to use Forvo's paid API (€2/mo). I plan on adding support for their API but please allow for some time, I'm working on it ASAP. ------------------------- 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->Add-ons menu item, then click on Get Add-ons and paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1678490153
I am feral this is exactly what i needed thank you for the hours back into my life.
on 1678026858
Probably my most used add-on. Very useful, it significantly speeds up the note creation process.
on 1676835784
Still a great addon! You say this is dysfunctional but it works perfectly for me. I will say a long time ago I had a Forvo API key but it is long cancelled, also I didn't enter it anywhere and this works whether I am logged into Forvo or not. Target language is Urdu.

Ctrl-S works and is handy if you have a whole sentence and just want to search for one word. I figured out you have to click inside a field for Ctrl-F and Ctrl-Shift-F to work (doesn't even have to be the target field, it will still put the audio in the correct field). I see references to bulk downloading, but I can't find a way to do that. I have been doing it one card at a time.

Most the cards in my deck need some work anyway when they appear in reviews, so when a card appears for the first time in reviews, I usually hit E - edit or B - browse this card and add the audio then as well as make any improvements I need to make to the card. Sometimes in general it is better for me to do things as needed instead of in bulk anyway.
on 1675626306
Works great, I love it. It does cause a little window to get stuck in the top left of the browse window, but that doesn't really affect much. Overall superb add-on, thank you!
on 1674503329
Very useful add-on. Works great with hotkeys! It would be nice if a selection of the search results could be configured via hotkeys too!
on 1674492716
This helped me a lot!!
on 1673913514
Works well
on 1673811813
Works great but how can I bulk download audio for my whole deck? It takes ages to add everything manually.
on 1667666312
I dont really want to leave a bad review as I've liked this tool in the past but it doesn't work anymore. It always says the word can't be found even though if I search it on forvo.com, there are many options for the word. I've used this add on in the past and it worked fine. Maybe Forvo changed something, I'm not sure
on 1667548494
ok
on 1666295902
I've found the add-on works great for words or declarative sentences. First, I created a list of words and sentences directly from Forvo. Then I added those words and sentences to Anki (exactly as I found them in Forvo). After that, I could easily add the sound file using the add-on. The add-on made it easy to choose which sound file to select.

However, there is an issue - I've noticed that the add-on doesn't find a match for any interrogative sentences - that is, anything with a question mark "?". I couldn't find a solution, other than to manually download the sound file directly from Forvo.

I've documented this further in Github issue #88.

Still giving a thumbs up because it works great for anything without a question mark.
on 1665331663
Perfect! I suggest to NOT include articles of words for the queue.. as there seem to be less audio versions of words if you include the article (i.e. with spanish!) So instead of "el coche" use "coche"
on 1663575179
perfect. Thank you.
on 1663533549
Simple to install and use.
on 1661659123
It works well, thanks! Is it possible to add a [select-right click-search-add] manual option?
on 1661462274
Amazing add on! Unfortunately a new bug has come up today:

File "C:\Users\--\AppData\Roaming\Anki2\addons21\858591644\src\Forvo.py", line 157, in get_pronunciations
pronunciation.find_all(class_="from")[0].contents[0],
IndexError: list index out of range
on 1659373924
It works again, thanks a lot!!
on 1659351845
Best plugin of its kind on here. Make sure to check the GitHub if you ever get errors, someone will probably have put a patch out before it gets updated here.
on 1659350127
it is great addon and thanks for maintaining and updating it is working now
on 1659341179
The add-on has been fixed and works flawlessly now! Make sure to restart Anki for it to work.
Comment from author before post was edited
Thank you! :)
on 1659267954
Fixed.
on 1658214036
Preceding comment solves the problem. Hope there will be an official update though.
Apart from that problem, the add-on is very cool and I recommend to anyone who cares a minimum about pronunciation (and who don't already Yomichan's built-in pronunciation tool).
on 1658145747
For everyone who is getting an error - use this: https://github.com/realmayus/anki_forvo_dl/blob/1148ee91fa803ad1b61508727c1862e025635be5/src/Forvo.py
In Anki, go to Tools -> Add-ons -> anki-forvo-dl - Forvo Pronunciation Downloader (fully automatic) -> View Files, then look for a folder called "src", you will find Forvo.py inside. Open it in Notepad++, delete all of the code and replace it with the code from the link above. Save, close Notepad++, close Anki, restart.
on 1658144459
NEED UPDATE!!!
on 1658052631
Doesn´t work anymore.
Chyba
Nastala chyba. Prosím spusťte Anki, zatímco držíte stisknutou klávesu shift, což dočasně zakáže doplňky, které máte nainstalované.
Jestliže problém nastane pouze v případě, kdy jsou doplňky povoleny, prosím použijte menu Nástroje > Doplňky, zakažte některé doplňky a restartujte Anki, opakujte, dokud neobjevíte doplněk, který způsobuje problém.
Když objevíte doplněk, který způsobuje problém, prosím nahlaste chybu na stránka podpory pro doplňky.
Informace o ladění:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-17 12:06:10

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "aqt.editor", line 561, in <lambda>
File "C:\Users\Petra Havlíková\AppData\Roaming\Anki2\addons21\858591644\__init__.py", line 217, in <lambda>
editor.saveNow(lambda: add_pronunciation(editor, mode))
File "C:\Users\Petra Havlíková\AppData\Roaming\Anki2\addons21\858591644\__init__.py", line 130, in add_pronunciation
results = forvo.get_pronunciations().pronunciations
File "C:\Users\Petra Havlíková\AppData\Roaming\Anki2\addons21\858591644\src\Forvo.py", line 111, in get_pronunciations
pronunciations: Tag = lang_container.find_all(class_="pronunciations")[0].find_all(class_="show-all-pronunciations")[0].find_all("li")
IndexError: list index out of range
on 1657921810
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.4
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-07-15 21:20:44
Möglicherweise beteiligte Erweiterungen: ⁨anki-forvo-dl - Forvo Pronunciation Downloader fully automatic⁩

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "aqt.editor", line 561, in <lambda>
File "/Users/pezhmansafaieh/Library/Application Support/Anki2/addons21/858591644/__init__.py", line 217, in <lambda>
editor.saveNow(lambda: add_pronunciation(editor, mode))
File "/Users/pezhmansafaieh/Library/Application Support/Anki2/addons21/858591644/__init__.py", line 130, in add_pronunciation
results = forvo.get_pronunciations().pronunciations
File "/Users/pezhmansafaieh/Library/Application Support/Anki2/addons21/858591644/src/Forvo.py", line 111, in get_pronunciations
pronunciations: Tag = lang_container.find_all(class_="pronunciations")[0].find_all(class_="show-all-pronunciations")[0].find_all("li")
IndexError: list index out of range
on 1657453933
Thanks so much for making this plugin!
on 1656148403
awesome thanks!
on 1655307430
This add on is really useful!! I've been using it for months and haven't had a single issue with it. I appreciate how detailed and customizable it is.
on 1652936571
Well done! This add-on is something that Anki really missed. It helps language learning a lot.
on 1652864315
Thanks for making this!
on 1652405006
works well and makes importing words from forvo so much quicker
on 1651138986
Amazing! Works perfectly.
on 1650997484
After reading that the bulk add feature and the article/pronoun remover will be added (back in the case of the bulk add feature) I am no longer neutral. I'm looking forward to it!
on 1649928383
Ce greffon est fabuleux! J'étais habitué de chercher les mots russes sur le Wiktionnaire, mais maintenant tout est automatique! :D
on 1646106294
This is a game changer. Thank you for this. CMD+F does wonders.
on 1645315406
When it works it's great but I'm getting Anki to freeze now everytime I use it unless I reboot my system for some reason
on 1645289675
Sync with android works! Cool
on 1642622080
.
on 1642621056
Works great, thank you!
on 1641099827
Amazing addon. Would it be possible to display the gender of the speaker (if listed), too?
on 1639576294
Please add the bulk downloader with higher restrictions, it was an amazing feature!
on 1639116275
Looking forward to the next update with batch adding audio for multiple cards.
on 1639065249
Unfortunately, it's not working with the latest beta. Here's hoping it gets repaired soon, I absolutely depend on this for entry!

https://github.com/realmayus/anki_forvo_dl/issues/55
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 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! :)