I read from following thread,
and i want to use my own custom dictionary so i create a acoustic model bundle with only LanguageModelGeneratorLookupList.text in it.
so in (generateLanguageModelFromArray), i use the path of my own acoustic model bundle(which locate at Caches), and in (startListeningWithLanguageModelAtPath), i use the original bundle path.
It works perfect before i upgraded to the newest version of Openears(Rapid ear and Rejecto),
it still works after upgrade, but it will prints following error
Error: an attempt was made to load the g2p file for the acoustic model at the path /var/mobile/Containers/Data/Application/3FFAA228-0764-48B7-BAF6-42CE5AAB2717/Library/Caches/AcousticModelEnglish1.bundle and it wasn’t possible to complete.
I don’t know if i need to pay attention to this error, since the engine still works as before.
BTW: actually, i just create a directory named AcousticModelEnglish1.bundle, and copy LanguageModelGeneratorLookupList.text into it.