Hogwarts Legacy Sound Replacement


I created a sound replacement tool (WemDB) in Python which allows you to find sound assets (like dialogue lines) in the game, and replace them with any other sound you like. This modding tool was created right when the game got released and I have good reason to believe I was the first person to manage to replace a sound in the game. Certainly, I was among the first to succesfully reverse-engineer the game's audio system and helped pioneer much of the early audio modding for Hogwarts Legacy.

The code for WemDB can be downloaded here, though it is unlikely to be useful to anyone this long after the game's release when better tools might be available.

Example sound replacements


The first ever succesful sound replacement in Hogwarts Legacy was this one, where I removed one of the dialogue lines and replaced it with the "My name is Giovanni Giorgio, but everybody calls me Giorgo" meme.

This audio was not added in post (you can hear this because the music continues as expected). The sound was truly replaced in-game.

The process


I wish I remembered more about how I managed to work it all out. To be honest, I all kind of did it in a haze of reading through file formats, downloading obscure tools to help reverse engineer and so on. My experience with Wwise certainly helped make the process easier, but a lot of researching still went in to this.

The picture above I thankfully still had saved. This was a breakthrough moment when I discovered that some bytes were swapped in the game's audio (.wem) files. This knowledge was instrumental in creating my audio replacement tool.