An extension for an extension! Plays the audio when you get a KaniWani review item right, to help reinforce the connection between the thing you just typed in and actual sounds.
Some ad-blocking or other extensions may conflict with this, e.g. Privacy Badger and Disable HTML5 Autoplay, so if you have issues, try disabling those extensions for *.kaniwani.com.
TODO (if anyone is interested): interface to mute/unmute/stop playback/replay
Iāve only tested it on Chrome on Windows, although it should work on Chrome on any OS. It wonāt be possible to get it to work on phones as far I know.
Maybe Iām doing something wrong, the script shows active, but doesnāt play the audio. I have a few Chrome extenions installed (adblock, html5 autoplay disable, yomichan), as well as customized Kaniwani settings, Iāll experiment during upcoming reviews to if any of those are interacting with it. Using Windows 10.
EDIT: Appears to be the HTML5 autoplay disabling extension, I disabled on Kaniwani. Appears I forgot I had done that already on Wanakani too.
This is such a great idea (!!), but the audio doesnāt seem to be playing anymore. Iām using Chrome, I have Adblock & any other extensions that would interfere disabled.
OK, it still seems to be working fine on every system I have access to. Without a lot more information, thereās not a lot I can do.
Does it work on other computers, or other browsers? Does it work if you turn off all extensions and other scripts, even those that couldnāt possibly interfere?
Any chance we could get the audio played for the entered response, and not just the first synonym? Itās a bit jarring to hear the wrong audio, and even more so when itās for a vocab you havenāt learned in WK yet.
Something like:
If i-th kana element matches user answer, use i-th kanji.
Otherwise, if i-th kanji element matches user answer, use i-th kanji.
Otherwise, use 0-th kanji.
I could take a crack at it too, if youāre accepting PRs.
Hey there! I have just downloaded KaniWani Audio and itās wonderful!. I just wanted to say that for me, the audio does not autoplay after a correct answer, it only plays when I click the āKanjiā button.
Is this how it should work? Or should it autoplay as soon as I hit the enter key and the answer turns green?
Iām using Chrome on OSX. I have disabled all my adblockers and I donāt have any prevent html5 audio autoplay extension.
I just tested it in Tampermonkey and it seems that there is an error in the script. The init clause that adds the DOM observer for answerPanelChanged adds it to the _detailKanji element instead.
Change line 65: kwa.observeDOM(kwa._detailKanji, function() {
To: kwa.observeDOM(kwa._answerPanel, function() {
Seems to be a copy paste error from the previous init clause above.