Can you make the voices random?

As a lifetimer who’s not going to be affected by price changes, I say… bring on the new subscription prices! Mwahahahahaa

4 Likes

Also, are there any keyboard shortcuts for playing the second voice?

2 Likes

That’s another excellent idea. So maybe “J” for the standard voice and “K” for the other voice?

4 Likes

I agree with that.

I think that’s less intuitive. Cough. Emacs veteran here. “j 1” for the standard voice, and “j 2” for the second voice, and the options can be “j 20”, cos what if next time Tofugu applied the idea of having all context sentences read by native, not only Tokyo ben, but also Kansai ben, and other ben, ben ben dialects in Japan that cover all dialects in Japan. Hora?! Ok. I had my medicine to stop coughing.

1 Like

C’mon, something like this will take like a half hour to implement tops.

1 Like

The new Android app Flaming Durtles has this option available, so if you have an Android device, you’re in luck.

5 Likes

I made a script for randomising the voice actor

https://greasyfork.org/en/scripts/390446-wanikani-random-voice-actor

8 Likes

I had this script installed since eight hours ago but I always heard Kyoko during my review sessions (about 50 items) and my second account’s review sessions (about 40 items). I’ve never heard Kenichi. Should be randomised right? Anyone else experienced this? Nevertheless, self study quiz reviews support it, though, yeah, not WK reviews.

1 Like

It worked fine for me 356199585514782723
Did you check the console for errors? Could also be that another script has overwritten Math.random(). I know an old script used to do that

1 Like

No, I’ll check the console for errors later when my reviews are not 0 and I’m back on my computer again.

1 Like

ok, I’m back with my computer now. Not sure if I check it right.

1 Like

The iOS Tsurukame also does this by default.

Ok, so I found more than one reason for this. Another script is indeed overwriting Math.random and makes it always 0, however, this can easily be worked around and I have already updated the script to do so.
The other issue is with @seanblue’s Audio Tweak script, which makes it play Kyoko’s audio regardless of your preference setting. I could probably work around this myself, but it should be addressed and fixed in the Audio Tweak script. If you want a quick fix for this you can add a check for preferred voice actor in that script, like I did.

+				if (audio.voice_actor_id == WaniKani.default_voice_actor_id) {
					$('<source></source>', {
						src: audio.url,
						type: audio.content_type
					}).appendTo(audioElem);
+				}

@seanblue When looking into this I also discovered that your script is causing both audios to be played at once when pressing J or clicking the audio button. Towards the end of the script you have $('audio').trigger('play');, which triggers all audio at once. I just changed this to $('audio.preferred').trigger('play'); in my local copy.

2 Likes

Reorder strikes again. :disappointed:

Thanks for the heads up. I’ll try to get a fix out later today.

2 Likes

Ah, right. I forgot which one it was. Thanks for reminding me. I had issue with it once before, so I knew to look for it, but I wasn’t sure if it was a deprecated script that did it.

1 Like

If I remember correctly it’s how 1x1 mode works.

2 Likes

Oh also, do you know if this would work when the preferred voice actor doesn’t have audio for a given item? Is the other audio source marked as preferred in that case or does WaniKani handle it differently?

Sorry, I don’t. However, I don’t think there is any item which doesn’t have audio for either of the VAs, seems to me like they just missed some of the extra readings. I also don’t know if there can be two preferred audio elements, if there are two valid readings for an item, but I would assume so.

1 Like

Okay. I haven’t been doing reviews for months, so I can’t exactly test for the case where there’s more than one reading and audio for both readings exist. I’ll just have to apply your fix and wait for someone to encounter that case and let me know what happens.

I still have plenty of reviews, so I’ll be vigilant.

1 Like