mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2.2 KiB
2.2 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| Visualizza, modifica o rimuovi i tag di metadati audio (ID3). | 0717018e11cb | human | 1deb134d1e4d |
Metadati audio
Visualizza, modifica o rimuovi i tag di metadati audio come titolo, artista e album (ID3 e formati di tag simili).
Endpoint API
POST /api/v1/tools/audio/audio-metadata
Accetta dati di form multipart con un file audio e un campo JSON settings.
Parametri
| Parametro | Tipo | Obbligatorio | Predefinito | Descrizione |
|---|---|---|---|---|
| strip | boolean | No | false |
Rimuovi tutti i tag di metadati esistenti |
| title | string | No | - | Imposta il tag del titolo (max 500 caratteri) |
| artist | string | No | - | Imposta il tag dell'artista (max 500 caratteri) |
| album | string | No | - | Imposta il tag dell'album (max 500 caratteri) |
Esempio di richiesta
Modifica i tag di metadati:
curl -X POST http://localhost:1349/api/v1/tools/audio/audio-metadata \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"title": "My Song", "artist": "Artist Name", "album": "Album Name"}'
Rimuovi tutti i metadati:
curl -X POST http://localhost:1349/api/v1/tools/audio/audio-metadata \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"strip": true}'
Esempio di risposta
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/audio.mp3",
"originalSize": 4500000,
"processedSize": 4480000,
"metadata": {
"container": "mp3",
"durationS": 245.3,
"bitrateKbps": 192,
"tags": {
"title": "My Song",
"artist": "Artist Name",
"album": "Album Name"
}
}
}
Note
- La risposta include un oggetto
metadatacon formato del container, durata, bitrate e tag correnti. - Quando
stripètrue, tutti i campi dei tag vengono ignorati e ogni tag esistente viene rimosso. - Vengono aggiornati solo i tag che fornisci; i tag non specificati rimangono invariati.
- Il formato di output corrisponde al formato di input.