# Replacing sounds effects

## Summary

**Published:** June 9, 2024 **by** Zhincore

This guide covers how to export and import sound effects using WolvenKit by modifying opusinfo/opuspaks.

### Wait, this is not what I want!

* if you'd rather convert sound effects into a useable format , go to [converting-.wem-to-.wav](https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/sound/converting-.wem-to-.wav "mention")

{% hint style="danger" %}
This method is not compatible with other mods that change sounds this way, that's why you should prefer using [REDmod for muting or adding sounds](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/modding-tools/redmod/audio-modding) or [Audioware](https://www.nexusmods.com/cyberpunk2077/mods/12001) (custom audio backend).
{% endhint %}

{% content-ref url="../../for-mod-creators-theory/modding-tools/redmod/audio-modding" %}
[audio-modding](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/modding-tools/redmod/audio-modding)
{% endcontent-ref %}

## Exporting SFX

### 1. Obtaining opusinfo

In order to be able to export sound effects, you must first add `sfx_container.opusinfo` to your project. Find that file in the Asset browser using [the search](https://wiki.redmodding.org/wolvenkit/wolvenkit-app/usage/wolvenkit-search-finding-files) and double click it to add it.

### 2. Selecting hashes

{% hint style="info" %}
*Hash* is basically an ID of a sound. To find the hashes you need, you can use the [SoundDB web tool](https://sounddb.redmodding.org/sfx).
{% endhint %}

Once you have opusinfo in your project <mark style="color:red;">(1)</mark>, it should appear in the Export tool (top menu -> Tools -> Export tool), if not, try pressing the Refresh button. Select the sfx\_container <mark style="color:red;">(2)</mark> and in the options on the right click the three dots next to "Selected for Export" <mark style="color:red;">(3)</mark>. A new window will popup <mark style="color:red;">(4)</mark>, there you choose what hashes/sounds you want to export.

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-e388d1a610dbbf62b686f79baa34d81afdbf95b7%2Fspaces_-MP_ozZVx2gRZUPXkd4r_uploads_oNAqRdzmJfZm38JdzauL_image.webp?alt=media" alt=""><figcaption></figcaption></figure>

For a little more detailed walk-through see:

{% content-ref url="<https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/usage/import-export/import-export-sound-effects>" %}
[Import/Export: Sound effects](https://app.gitbook.com/s/-MP_ozZVx2gRZUPXkd4r/wolvenkit-app/usage/import-export/import-export-sound-effects)
{% endcontent-ref %}

### 3. Exporting it

> And by "it", haha, well... Let's justr say... Sound effects.

Once you've selected your hashes and pressed "Finish", you can press the Export button. Once that's done you will now have your sounds exported in the raw folder of your project. You will two files per hash/sound, one is `.opus` and second is `.wav`. You can now modify the .wav sound to your liking, just preserve it's name and location!

## Importing SFX

{% hint style="info" %}
Using this method you can only replace existing sounds. To add new ones use the [REDmod method](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/modding-tools/redmod/audio-modding) or [Audioware](https://www.nexusmods.com/cyberpunk2077/mods/12001).
{% endhint %}

Importing sound effects is mostly straightforward. Simply put your sounds in your project's `raw\base` folder. The sound must be in `.wav` format and it's file name must be exact hash of an existing sound. Best bet is [exporting it first](#exporting-sfx).

1. Open the Import tool (top menu -> Tools -> Import tool).
2. Select your sounds you want to import.
3. Press "Import selected" (or all, whichever suits you)

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-dc2b5110aff6ad4dc5cba3aa4ddd381bf902c60f%2Fimage.png?alt=media" alt=""><figcaption><p>The Import Tool with the previously exported files on the left.</p></figcaption></figure>

You can usually leave the default settings as is. And your mod is done! Test it out.

{% hint style="danger" %}
Mods made this way are incompatible with each other! You should prefer using [the REDmod method](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/modding-tools/redmod/audio-modding) if possible.
{% endhint %}
