A command-line tool for processing audio files and generating .wav, .awc.xml and .dat54.rel.xml files.
- Place your audio files in the
in/directory - Run
lb-audio-generator.exefrom the command line:lb-audio-generator.exe, optionally with the command line options - Open CodeWalker RPF Explorer
- Enable "Edit mode" (top-right)
- Create a new folder called
modsif it doesn't already exist - Open the
modsfolder - Drag and drop the generated
out/[directory]/[bank].awc.xmlfile into themodsfolder in CodeWalker - Drag and drop the generated
out/data/[datafile].dat54.rel.xmlfile into themodsfolder in CodeWalker - Drag and drop the
[bank].awcfile from CodeWalker intoout/[directory]/[bank]/ - Drag and drop the
[datafile].dat54.relfile from CodeWalker intoout/data/
- Follow the steps above to generate the audio files
- Replace
lb-phone/sound/dlc_lbscripts/sounds.awcwithout/dlc_lbscripts/sounds.awc - Replace
lb-phone/sound/data/lbphone.dat54.relwithout/data/lbphone.dat54.rel - Update the sounds in
Config.Sound.RingtonesandConfig.Sound.Notificationsinlb-phone/config/config.lua
The tool supports several command-line options to customize the output:
Sets the default soundset name for audio files not organized in subdirectories.
Default: ringtones
Example:
lb-audio-generator.exe --soundset notificationsSpecifies the output directory name for the generated audio mod.
Default: dlc_lbscripts
Example:
lb-audio-generator.exe --directory dlc_myaudiopackSets the audio bank name within the directory structure.
Default: sounds
Example:
lb-audio-generator.exe --bank sfxSpecifies the base name for generated data files (.dat54).
Default: lbphone
Example:
lb-audio-generator.exe --datafile myphoneAdjusts the volume level for all processed audio files.
Default: 1.0
Range: 0.0 to 1.0
Example:
lb-audio-generator.exe --volume 0.8Enables audio normalization and compression for consistent loudness levels.
Default: false
Example:
lb-audio-generator.exe --normalizelb-audio-generator.exe --soundset phone_sounds --directory dlc_customphone --bank audio --datafile phonepack --volume 0.9 --normalizeOrganize your audio files in the in/ directory:
in/
├── ringtone/
│ ├── ringtone-1.mp3
│ └── ringtone-2.wav
├── notification/
│ ├── notification-1.mp3
│ └── notification-2.mp3
└── other/
└── alarm.mp3
The tool automatically detects soundsets based on folder structure:
- Files in
in/ringtone/→ soundset:ringtone - Files in
in/notification/→ soundset:notification - Files in root
in/→ uses--soundsetvalue (default:ringtones)
Audio files will automatically loop if:
- They're in a soundset named
ringtone - The filename contains
loop - The filename contains
alarm
The tool generates the following output structure:
out/
├── dlc_lbscripts/
│ └── sounds/
│ ├── ringtone-1.wav
│ ├── ringtone-2.wav
│ └── ...
│ └── sounds.awc.xml
└── data/
└── lbphone.dat54.xml
When enabled, applies:
- Compression: 8:1 ratio compression
- Loudness: -14 LUFS integrated loudness
- True Peak: -1.5 dBTP limiting