Hello, fellow Godot users.
I'm developing a Speech to Text (STT) module for Godot (2.1.3 build) using an open source speech recognition library. This library uses configuration files, which I stored inside my experimental game project.
The main problem I've encountered is getting the absolute path to the configuration files to work after exporting the game; after all, the library doesn't recognize
The game works inside the editor, since my module can get absolute paths with the
Globals singleton. For example:
The above line converts the file path on my Ubuntu 16.04 to
/home/my_user/other_stuff/stt/keywords.kws. However, this absolute path doesn't work with an exported, binary game (I've tried on own Unix system), since the configuration files are stored inside the binary itself.
The only way I've found to run the binary would be to place library-related files on the same directory, but that defeats the purpose of having them inside the project in the first place!
I've tried looking around the
DirAccess Godot classes for a workaround, but with no success. Is there any class/function to accomplish this? Or should I store my library-related files externally (in the
user:// path, for example)?
I'd really appreciate any suggestions or comments. :)