# setSoundSpeed (Shared)

> Changes a sound's speed. The pitch changes with it. On the server, the change is sent to every client.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Sound
- **URL**: https://wiki.mymp.gg/en/setSoundSpeed

## Syntax

```lua
bool setSoundSpeed(sound sound, float speed)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element. On the client a `dui` element also works, for the browser's sound. |
| `speed` | `float` | The speed, where 1 is normal. It goes up to 16; 0 or less plays at normal speed. |

## Returns

`true` if the sound was found, `false` otherwise.

## Example

```lua
local music = playSound("sounds/track.mp3")
setSoundSpeed(music, 1.25)
```

## See also

- [getSoundSpeed (Shared)](https://wiki.mymp.gg/en/getSoundSpeed.md): Returns a sound's speed.
- [setSoundProperties (Client)](https://wiki.mymp.gg/en/setSoundProperties.md): Changes a sound's sample rate, tempo and pitch, and whether it plays backwards.
