14 1
Contact Author Sign in to rate

Yomichan Forvo Server

<10kB. Updated 2022-01-31. Only supports Anki 2.1.x.

Description

Yomichan Forvo Server for Anki Simple server to take advantage of Yomichan's custom audio sources feature. Requires Anki Connect. It web scrapes Forvo's search and word page to get a list of words Prerequisites Install
  1. Copy the code and install like you would for any other Anki addon
  2. Restart Anki
  3. Allow network connections (required since this is a local server)
  4. In yomichan settings, go to Audio > Configure Audio Playback Sources > Custom Audio Source
  5. Select Type as JSON and set URL to http://localhost:8770/?expression={term}&reading={reading}
  6. In your Audio Sources list below, make sure one of them is set to Custom
Now when you scan a word in Yomichan, you should be able to right click the audio icon and the Forvo custom audio sources should appear Changelog: 2021-03-22 2021-11-14 2022-01-30

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:

580654285

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 1652970881
Works great, thanks
on 1652368691
☆彡
Comment from author before post was edited
Sorry the addon isn't working for you. Can you give some examples of words that don't work? Also if you can give some more info such as operating system, Anki version, browser, it might make it easier to debug.
on 1651466864
I adjusted my local file to use play_args[5] and /audios/mp3/ because the /mp3/ version was a longer audio with dead noise at the end, making it a waste of time when I wanted more than one audio file to be played consecutively. However for some reason it errors for 不自由 even though the fifth arg should be fine
on 1649389071
Great plugin
on 1649112411
Very awesome, thanks for sharing :)
on 1643646211
When I try to use this, I cannot select any servers in yomichan.

page looks like this
{"type": "audioSourceList", "audioSources": []}

Update:
Yeah, I should haven given more context, sorry.
Set it up like described in Yomichan -> pasted the URL into Custom URL (JSON), but can't select any Server in Yomichan. It just shows Custom URL (JSON) in the dropdown menu where you select the sound.
Anki is open and runs with Anki Connect Version 6.
Comment from author before post was edited
Are you going to http://localhost:8770/?expression={term}&reading={reading} in your browser directly? In Yomichan settings, go to Audio > Configure audio playback sources... > Add > Custom URL (JSON) and then set the URL there, not pasted into your browser
on 1637313983
thx
on 1637142200
How do i solve this
When loading '⁨Yomichan Forvo Server⁩':
⁨Traceback (most recent call last):
File "aqt\addons.py", line 211, in loadAddons
File "C:\Users\user\AppData\Roaming\Anki2\addons21\580654285\__init__.py", line 209, in <module>
httpd = http.server.ThreadingHTTPServer(('localhost', 8770), ForvoHandler)
File "socketserver.py", line 452, in __init__
File "http\server.py", line 139, in server_bind
File "socket.py", line 756, in getfqdn
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 0: invalid start byte

Edit: It happens when I open anki.
Current operating system is windows 11 but I also faced the problem while on windows 10.
Anki version is 2.1.35
I use chrome for my browser Version 96.0.4664.45 (Official Build) (64-bit)
Comment from author before post was edited
Sorry you're having issues. Does this happen when you open anki or when you search up a word? Also can you give more context around operating system, Anki version, and browser? I might need more info to reproduce this bug.
on 1623824561
very ばせd
on 1621334439
🧎‍♂️
on 1620582402
Lifesaver
on 1620492833
ばせd
on 1617987105
awesome
on 1616479537
ばせd
on 1616447181
cool