You can run LLMs inside the shaping engine, so maybe you can use more advanced segmenting and transliteration algorithms? https://fuglede.github.io/llama.ttf/
It can depend on implied information, e.g. 方 can be hou or kata depending on if you're talking about about direction or a person. And that information can be before it, after it, on some image next to it, etc.
There aren't good datasets for that. Even neural TTS for Japanese struggles with it since Japanese transcriptions used to train models don't preserve pronunciations used.
(or maybe it could be theoretically done, just the mechanism to automatically classify wildly different pronunciations mapped to the same literal expressions don't yet exist)
That's surprising. I'd have thought that a multimodal LLM like openai's would "just work", at the very least enough to generate enough data to distill down to a simpler model.
Even professional native voice actors get a reading wrong in audiobooks sometimes so it's not surprising to me that LLMs are not quite reliable enough either at this point
Yeah. Either there's just not enough annotated text in existence, or frontier LLMs aren't trained with enough such text.
I think the latter is a possibility too; the Japanese language share little from syntax to vocabulary to memes with other languages, including Chinese(Japanese is NOT a dialect of Chinese; arguably it was SUPPOSED TO in the ancient times, but Japan was simply unable to achieve that status), despite sharing Unicode codepoint ranges with the Chinese language due to Han Unification. So there might be some chance that Japanese part of the dataset is inconsistent and contradictory to other parts, in some ways such that, it would make sense to include just the bare minimum to achieve best use of resources available at this point. Chinese models seem to do this, and dataset fractions of Japanese content is always tiny. Some of Chinese image models even straight up un-support Japanese.
As to what teshigahara said in the sibling comment - I think that shows the readings are arbitrary rather than being simply complicated and hard to infer for beginners. It must be that the Japanese written-spoken convergence movement began in the early modern times never reached its goals, beyond the written language having its own tone like in many languages, and so the verbal Japanese expressed in Japanese writings is simply not complete.