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.3 KiB
2.3 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| Splits audio op tijdsintervallen, gelijke delen of stiltedetectie. | c062a395dbac | human | e2fe745a5287 |
Split Audio
Splits een audiobestand in segmenten op vaste tijdsintervallen, gelijke delen of automatische stiltedetectie. Retourneert een ZIP-archief met de segmenten.
API Endpoint
POST /api/v1/tools/audio/split-audio
Accepteert multipart-formulierdata met een audiobestand en een JSON-veld settings.
Parameters
| Parameter | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| mode | string | Nee | "time" |
Splitsstrategie: time, parts, silence |
| segmentS | number | Nee | 60 |
Segmentlengte in seconden, 1 tot 3600 (gebruikt wanneer mode time is) |
| parts | integer | Nee | 2 |
Aantal gelijke delen, 2 tot 20 (gebruikt wanneer mode parts is) |
| thresholdDb | number | Nee | -40 |
Stiltedrempel in dB, -80 tot -20 (gebruikt wanneer mode silence is) |
| minSilenceS | number | Nee | 0.3 |
Minimale stiltepauze in seconden, 0.1 tot 10 (gebruikt wanneer mode silence is) |
Example Request
Splitsen in segmenten van 30 seconden:
curl -X POST http://localhost:1349/api/v1/tools/audio/split-audio \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"mode": "time", "segmentS": 30}'
Splitsen op stiltedetectie:
curl -X POST http://localhost:1349/api/v1/tools/audio/split-audio \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"mode": "silence", "thresholdDb": -35, "minSilenceS": 0.5}'
Example Response
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/audio_parts.zip",
"originalSize": 4500000,
"processedSize": 4600000
}
Notes
- De
downloadUrlverwijst naar een ZIP-archief met alle segmenten. - Alleen de parameters die relevant zijn voor de gekozen
modeworden gebruikt; de overige worden genegeerd. - Segmentbestandsnamen worden opeenvolgend genummerd (bijv.
part-000.mp3,part-001.mp3). - Het uitvoerformaat komt overeen met het invoerformaat.