> For the complete documentation index, see [llms.txt](https://speedtutoruk.gitbook.io/apk-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://speedtutoruk.gitbook.io/apk-documentation/extending/adding-audioclips.md).

# Adding Audioclips

ScriptableObjects for audio can be created by "Right Clicking anywhere in the project panel > Create > Sound" or duplicating an already created SO.

<figure><img src="/files/mPNhIe5HDriVtqMbYpR9" alt=""><figcaption></figcaption></figure>

ScriptableObjects will all have specific settings that control the audio clip which is used, that you can change, the volume, pitch, variance and whether it can loop. All features of the default "AudioSource" component.&#x20;

<figure><img src="/files/7jsXfGyHOvtvsMwIquzf" alt=""><figcaption></figcaption></figure>

In the "AudioManager" is good to add the size of the "Sounds" array to the number of sounds which will play within this system. By default it has 5 SO audio clips, these should be added to access them all.

<figure><img src="/files/7Wl1J5ZQ63jz1S0tAiCZ" alt=""><figcaption></figcaption></figure>

Look at the inspector of the any interactive object with the "**SurvivalItem**" script and this will have slots for specific SO sound effects that you can add! This allows you to play that specific SO from the audio manager.

{% hint style="info" %}
**Referencing the Audio Manager**\
&#x20; \
Use the code, within your scripts to reference your sounds to play. This code will play the references ScriptableObject sound effect.
{% endhint %}

```csharp
AKAudioManager.instance.Play(VariableName);
```

{% hint style="info" %}
LINK TO AUDIO REFERENCE GUIDE
{% endhint %}

### Adjusting Audio Effect Volume:

{% content-ref url="/pages/i4xmwI2rSbrfCIsUf8B2" %}
[Audio Effect Volume](/apk-documentation/extending/adding-audioclips/audio-effect-volume.md)
{% endcontent-ref %}
