# getSoundSpeed (Shared)

> Returns a sound's speed.

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

## Syntax

```lua
float|false getSoundSpeed(sound sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element. On the client a `dui` element also works, for the browser's sound. |

## Returns

The speed (1 is normal), or `false` if the sound was not found.

## Example

```lua
outputDebugString("Speed: " .. getSoundSpeed(music))
```

## See also

- [setSoundSpeed (Shared)](https://wiki.mymp.gg/en/setSoundSpeed.md): Changes a sound's speed. The pitch changes with it. On the server, the change is sent to every client.
