# Adding Sound Effects

There several ways you can add Sound to the Animal Controller.

## Animator Sound Behaviour

You can use the Sound Animator Behaviour, and add the sounds you want to play inside the Animator.

![](/files/-MigERje_jcG2z0mil9x)

On the Animator, select any of the Animation States and **add** the Sound Behaviour. This component will play an a random sound from an AudioClip List every time the Animation State plays.

## Animator Event Sound Component

Use the Animator Event Sound Component on your Character to play sounds when the Animator use Animation States with Blendtrees. This require Animation Events on the Animation Clips.

Check how to do it [**here**](/animal-controller/utilities/animator-event-sounds.md)**.**

## **Mode Audio**

Inside the modes you can add Audio clips too. You set a Audio Source in the Mode General Tab.

<figure><img src="/files/5KiwDXGRTjzS6EBePC0R" alt=""><figcaption></figcaption></figure>

On each Ability you can add the audio clips that will be reproduced when the Mode is Activated

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

If the *Audio source* for the Ability is null, then the Clip will be played on the Mode Audio Source.

&#x20;


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/how-to-ac/add-sound-effect-to-ac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
