> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/tweaks/audio-in-tweakdb.md).

# Audio in TweakDB

Description of how audio is linked in tweaks

## Summary

**Created:** Feb 23 2025 by [Zhincore](mailto:undefined)\
**Last documented update:** Feb 23 2025 by [Zhincore](mailto:undefined)

Tweaks can contain `CName` fields related to audio, these CNames refer to entries defined in the `cooked_metadata.audio_metadata` file, entries there have a name field that's used in the tweaks, multiple entries can have the same name. Fields of these entries can be numbers, objects, lists, but most importantly CNames, those can refer to other entries in the file OR event names defined in `eventsmetadata.json` (and searchable in [SoundDB](https://sounddb.redmodding.org/sfx)).

{% hint style="warning" %}
This page is probably incomplete and only contains a dump of findings. If you find a discrepancy or know more, please edit it.
{% endhint %}

## Vehicles

Vehicles have two audio fields, `playerAudioResource` - settings for player-driven vehicles, and `trafficAudioResource` - settings for NPC-driven vehicles. A vehicle tweak can have both, none, or just one of these defined. Their values refer to complex cooked\_metadata structures, which define various settings including engine sounds, wheel sounds, bump sounds for each side of vehicle, sounds for detaching doors, etc. etc. Traffic audio resource is usually simpler than player one.

## Weapons

Weapons have also two audio fields, `audioName` - probably the main audio settings, and `audioWeaponConfiguration` which seems to be base settings, usually in melee weapons, where audioName overwrites some of the base settings. The cooked\_metadata entries they refer to contain separately settings for player and for NPCs, but also for body types and material types for bullet impacts etc. They can get deeply nested and even recursive infinitely, watch out for that when processing them programatically.

Additionaly, weapons can have `audioSwitchName` and `audioSwitchValue`, both of which are defined in `eventsmetadata.json`. This is used to tell the audio engine what weapon type this weapon is, so that maybe different sounds are played. For example `Items.Preset_Burya_Default` has `audioSwitchName: w_pistol_type` and `audioSwitchValue: w_pistol_power`, which means in the engine the switch `w_pistol_type` gets assigned the value `w_pistol_power` when playing the weapon's sounds.

## Radios

Radios are defined in `RadioStation.*` tweaks, those contain `displayName`, `icon` and an `index`. That index refers to an item in `radioStations` array of cooked\_metadata entry named `radio_stations_config`, that item then contains name of other entry within cooked\_metadata, which then contains the tracks (event names) and blips (also event names).

Names of all radio tracks are defined in the `radio_tracks_metadata` entry of cooked\_metadata, mapped by `trackEventName`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/tweaks/audio-in-tweakdb.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
