# getSoundSpeaker (Client)

> Returns the ped who speaks a sound.

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

## Syntax

```lua
ped|false getSoundSpeaker(sound sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element, or a `dui` element for the browser's sound. |

## Returns

The ped or player, or `false` if nobody speaks the sound or the sound was not found.

## Example

```lua
local speaker = getSoundSpeaker(line)
if speaker then
    setSoundSpeaker(line, false)
end
```

### Coming from MTA

Not in MTA.

## See also

- [setSoundSpeaker (Client)](https://wiki.mymp.gg/en/setSoundSpeaker.md): Has a ped speak a sound: its mouth moves with the sound's level and, if the sound is 3D, it comes from the ped's head every frame.
