23 1
Contact Author Sign in to rate

Yomichan Forvo Server

0.01MB. Updated 2022-10-26.

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. NOTICE Forvo sometimes enables Cloudflare verification, meaning it tries to verify that a human is browsing their site instead of a program like this one. The add-on can't function when this happens, but please check https://github.com/jamesnicolas/yomichan-forvo-server/issues/13 if you want to track this issue. 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/?term={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. Configuration Yomichan Forvo Server supports a few configuration options, which you can edit by going to Tools > Add-Ons > Yomichan Forvo Server > Config. Note configuration changes requires you to restart Anki to see effects. Links Changelog 2022-10-26 2022-09-05 2022-07-25 2022-01-30 2021-11-14 2021-03-22

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->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 1688414926
Works perfectly, great way to add some more audio sources!
on 1673136072
Edit: updated to 2.1.35 and got it to work.
on 1667696291
Edited: It suddenly started working again. I hope it was just a temporary problem with Forvo.
Comment from author before post was edited
It looks like the addon is getting blocked by a CloudFlare verification. Working on a fix but this might be difficult
on 1665465507
Great add-on for improving availability of human voice clips (used with Yomichan).
on 1662766179
Everything works except for the audio being blank when I go into anki. What I mean is when I click "use audio for anki card" the audio in anki doesn't show up
on 1659029407
Very useful, gives word audio for a lot of words that Japanesepod101 doesn't have. Thanks for the quick fix
on 1658789212
Rally useful for adding audio to cards.
on 1658197510
ばせd

UPDATE:
__init__.py fix from 20220716 worked
on 1657990105
EDIT: replaced the contents of the py file with the text in the link provided by 07/16 and it works for now, thank you 07/16
on 1657972471
Hi, for those of you who have a problem with the plugin as of now (16.07.2022), here's a quick fix until the maintainer steps in to solve the problem. First, you have to find the location of the plugin directory. Inside the directory there is a __init__.py file. Replace it's content with the text from https://raw.githubusercontent.com/kuator/yomichan-forvo-server/main/__init__.py
Now it should work again
on 1657891667
Has been a great addon, but today it suddenly stopped working for some reason. Everything is updated to the latest version, except for Anki which is currently at 2.1.49

Edit: It suddenly works now, for some reason.
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 1617987105
awesome
on 1616479537
ばせd
on 1616447181
cool