SethRobinson / UGT

Universal Game Translator - Uses Google's Cloud Vision to read and speak dialog from any image/game in any language
https://www.codedojo.com/?p=2426
Other
120 stars 24 forks source link

Game will read in Chinese when text is Japanese #13

Open Meerkov opened 3 years ago

Meerkov commented 3 years ago

I've set my config to expect to translate Japanese to English. But in some games more than others, it will randomly decide that it is reading chinese text instead of Japanese despite the hints. This means that the audio reads wrong, and the text will often not translate into english without additional button inputs.

Here are my relevant settings:

;source_language_hint|auto
source_language_hint|ja

audio_default_language|ja
SethRobinson commented 3 years ago

Unfortunately this shortcoming is coming from Google's side - I'm using the language "hint" feature and it often seems to do nothing. There is no "force everything to be this language" for OCR afaik. ( https://cloud.google.com/vision/docs/languages )

There is also the chance that I'm simply sending the hint langage wrong, I should probably double check...