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 |
|---|---|---|---|
| Teilt Audio nach Zeitintervallen, gleichen Teilen oder Stille-Erkennung. | c062a395dbac | human | 4f92916f9eab |
Split Audio
Teilt eine Audiodatei in Segmente auf, entweder nach festen Zeitintervallen, gleichen Teilen oder automatischer Stille-Erkennung. Gibt ein ZIP-Archiv der Segmente zurück.
API Endpoint
POST /api/v1/tools/audio/split-audio
Akzeptiert Multipart-Formulardaten mit einer Audiodatei und einem JSON-Feld settings.
Parameters
| Parameter | Typ | Erforderlich | Standard | Beschreibung |
|---|---|---|---|---|
| mode | string | Nein | "time" |
Aufteilungsstrategie: time, parts, silence |
| segmentS | number | Nein | 60 |
Segmentlänge in Sekunden, 1 bis 3600 (verwendet, wenn mode time ist) |
| parts | integer | Nein | 2 |
Anzahl gleicher Teile, 2 bis 20 (verwendet, wenn mode parts ist) |
| thresholdDb | number | Nein | -40 |
Stille-Schwellenwert in dB, -80 bis -20 (verwendet, wenn mode silence ist) |
| minSilenceS | number | Nein | 0.3 |
Minimale Stille-Lücke in Sekunden, 0,1 bis 10 (verwendet, wenn mode silence ist) |
Example Request
In 30-Sekunden-Segmente aufteilen:
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}'
Nach Stille-Erkennung aufteilen:
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
- Die
downloadUrlverweist auf ein ZIP-Archiv, das alle Segmente enthält. - Nur die für den gewählten
moderelevanten Parameter werden verwendet; die übrigen werden ignoriert. - Segment-Dateinamen sind fortlaufend nummeriert (z. B.
part-000.mp3,part-001.mp3). - Das Ausgabeformat entspricht dem Eingabeformat.