Troubleshooting
Most of the issues are related to the language model staging, which can cause problems in the packaged build. Namely, you might encounter the following logs:
LogRuntimeSpeechRecognizer: Error: Language model loading failed: Failed to load the language model asset '/RuntimeSpeechRecognizer/LanguageModels/LanguageModel.LanguageModel'
To fix this, go to Project Settings, then navigate to Project -> Packaging section. Scroll down and reveal the Advanced category, and make sure that:
-
DirectoriesToAlwaysCook
(labeled asAdditional Asset Directories to Cook
) has an entry for/RuntimeSpeechRecognizer/LanguageModels
inside. This is done automatically by the plugin during editor-time, but some users have reported having to do it manually, so please make sure to check. This is necessary to ensure that the language model asset is always staged in the packaged build. -
bCookMapsOnly
is set tofalse
. If it's set totrue
, it will ignore the previous property, and there is a possibility that the language model asset will not be staged properly. This is also done automatically by the plugin, but just to be certain, please check this variable manually as well.
There may be other properties that can affect the engine's packaging behavior, which might be added to this page later as they are investigated.