DillonWall / generate-batch-audio-anki-addon

An addon that downloads and attaches audio to flashcards in bulk from URLs. Made for Anki, an SRS flashcard application
https://ankiweb.net/shared/info/1156270186
Apache License 2.0
14 stars 6 forks source link

Word Audio Not Being Generated #17

Closed kraiyt closed 7 months ago

kraiyt commented 7 months ago

In short, I have tried the extension on both qt5 and qt6 versions of anki, Windows 11 & Arch, and with the filter kana, duplicate to empty field, and dangerously fast in different configurations. Sometimes, it will generate one word's audio and then never generate it again (Windows 11) and on Arch it never generated any audio.

I also confirmed that the word (陰々滅々) was in the local audio server and that yomitan was able to access it. (MoeWay addon: 1045800357)

I have a feeling that its a simple fix, and I'm doing something wrong.

Thanks in advance!

DillonWall commented 7 months ago

Hello and thanks for using the add-on!

Before I try testing things out I'd like to get a bit more information if you don't mind.

It sounds like this may not be the case, but one thing I should note is that the URL should return (only) an audio file after replacing the fields with their correct values. You should be able to test this by manually replacing the fields in the URL and entering it in your browser. If it returns just an audio clip, then the URL should be okay.

kraiyt commented 7 months ago

Sorry for the late response.

I usually generate 30-50 at a time. Sometimes I'll do 3-5 or individual if I notice the note is missing audio/tagged missing media.

Some other words: 注目の的 鉄条 印象操作 破局 補佐官

List of URLs used in the addon

For URLs when they're typed into a web browser: http://127.0.0.1:5050/?sources=shinmeikai8&term=破局&kana=はきょく

returns

{"type": "audioSourceList", "audioSources": [{"name": "SMK8 \u30cf\u30ad\u30e7\u30af [0]", "url": "http://localhost:5050/shinmeikai8/media\\08982.mp3"}]}

PC Settings:

スクリーンショット 2024-03-06 225324

DillonWall commented 7 months ago

Thank you for your reply, I found a bug with the code in regard to your problem. I will fix this and release a new version today. Please download this new version once I release it and we can see if it solves the issue, I'll post another comment on this issue when it is done. Thanks!

DillonWall commented 7 months ago

Okay, I released a new version! Please try updating the addon via the app as normal and try generating audio for your problem cards once more. If all is good, please let me know and I'll close this issue 👍

kraiyt commented 7 months ago

Alright, thanks a lot! I tried it out and it seems to be working. Thank you for your time!