An audio server for yomichan that scrapes forvo for audio files
Python
45
58 commits
updated Oct 21, 2024

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:
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.
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.
port Port that YomiChan will call. Default is 8770language Language code to use in Forvo. Some examples are ja for Japanese or zh for Mandarin Chinese. Default ja. On the Forvo website, you can see what language code is in square brackets beside the language name on a pronunciation. If you want to have a separate source for another language, you can add another parameter to the URL to override this config: eg http://localhost:8770/?term={term}&reading={reading}&language=zhpreferred_usernames A list of Forvo usernames. This will order the results on top based on this priority. If empty, results will show based on the Forvo website order or according to preferred_countries. Default empty.preferred_countries A list of countries, usually title case. (Eg. "United States"). This will order the results on top based on this priority. preferred_usernames takes priority over preferred_countries. If empty, results will show based on the Forvo website order or according to preferred_usernames. Default empty.show_gender Show the gender symbols (♂, ♀,) beside the username based on their gender. Default true.show_country Show the country of the user beside their name. Default false.method_whitelist in urllib3 Retry and use allowed_methodsAn audio server for yomichan that scrapes forvo for audio files
Python
45
58 commits
updated Oct 21, 2024

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:
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.
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.
port Port that YomiChan will call. Default is 8770language Language code to use in Forvo. Some examples are ja for Japanese or zh for Mandarin Chinese. Default ja. On the Forvo website, you can see what language code is in square brackets beside the language name on a pronunciation. If you want to have a separate source for another language, you can add another parameter to the URL to override this config: eg http://localhost:8770/?term={term}&reading={reading}&language=zhpreferred_usernames A list of Forvo usernames. This will order the results on top based on this priority. If empty, results will show based on the Forvo website order or according to preferred_countries. Default empty.preferred_countries A list of countries, usually title case. (Eg. "United States"). This will order the results on top based on this priority. preferred_usernames takes priority over preferred_countries. If empty, results will show based on the Forvo website order or according to preferred_usernames. Default empty.show_gender Show the gender symbols (♂, ♀,) beside the username based on their gender. Default true.show_country Show the country of the user beside their name. Default false.method_whitelist in urllib3 Retry and use allowed_methods