This article explains how to set up localized soundbanks in FMOD Studio and CRYENGINE. CRYENGINE loads localized soundbanks from the localization folder, for example, localization/english/audio/fmod/
. This allows having multiple languages (not only audio) completely separated from each other to swap them in runtime and also for easier distribution across different countries.
Make sure you download the CRYENGINE GameSDK FMOD Project from the Asset Database and copy it to the required location.
FMOD builds its localized soundbanks into a subfolder of the soundbank location, for example, /audio/fmod/english/.
The folder of the localized soundbanks cannot be specified in FMOD, therefore it's necessary to move the Soundbanks after generation. To automate this process, the CRYENGINE SDK contains post-generation scripts that move the Soundbanks to the correct folder. These scripts can be found in: /audio/fmod_project/Scripts/.
The scripts only work when the FMOD project is at the same location as in the SDK: /audio/fmod_project/
. Otherwise, the scripts need to be edited to match the project's location.
Currently only English and German are supported by these scripts, but you can also easily add other languages. You can open the scripts with a text editor like Notepad++, and copy the lines of an existing language and replace the language name. In the SDK FMOD project, these scripts are executed automatically after Soundbank generation.
For instance:
Create Preload Requests for the banks.
Drag and drop a key into the Audio System Controls panel to create a new trigger. Or create a trigger manually and drag a key in the connections panel.
The localized sounds are listed under the "Keys" folder.
In the connection properties of the trigger, select a programmer sound event.