# getSoundMetaTags (Cliente)

> Lee las etiquetas del archivo de audio (ID3 del MP3, comentarios del OGG y del FLAC, INFO del WAV).

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Función Lua
- **Lado**: Cliente
- **Categoría**: Sonido
- **URL**: https://wiki.mymp.gg/es/getSoundMetaTags

## Sintaxis

```lua
table|string|false getSoundMetaTags(sound sound [, string format = ""])
```

## Parámetros

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `sound` | `sound` | El elemento `sound`, o un elemento `dui` para el sonido del navegador. |
| `format` | `string` | Un formato de etiquetas como `%ARTI - %TITL`. Vacío devuelve la tabla con todas las etiquetas. *(por defecto: `""`)* |

## Retorno

Sin `format`, una tabla con los campos que tiene el archivo: `title`, `artist`, `album`, `genre`, `year`, `comment`, `track`, `composer`, `copyright`, `subtitle`, `album_artist`. Con `format`, el texto armado. `false` si el texto sale vacío o no se encontró el sonido.

## Ejemplo

```lua
local music = playSound("sounds/track.mp3")
local tags = getSoundMetaTags(music)
outputDebugString(("Sonando ahora: %s - %s"):format(tags.artist or "?", tags.title or "?"))
```

## Ver también

- [getSoundLength (Compartido)](https://wiki.mymp.gg/es/getSoundLength.md): Devuelve la duración del sonido.
- [playSound (Cliente)](https://wiki.mymp.gg/es/playSound-client.md): Reproduce un sonido sin posición en el mundo, solo en este cliente. Dispara onClientSoundStarted con el motivo play.
