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.0 KiB
2.0 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| Zet spraak om naar tekst met AI-gestuurde transcriptie. | ae98c4c0aed2 | human | 658675dcd938 |
Transcribe Audio
Zet spraak om naar tekst met AI-gestuurde transcriptie (faster-whisper). Ondersteunt platte tekst, SRT en VTT als uitvoerformaten met automatische of handmatige taalkeuze.
API Endpoint
POST /api/v1/tools/audio/transcribe-audio
Accepteert multipart-formulierdata met een audiobestand en een JSON-veld settings.
Parameters
| Parameter | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| language | string | Nee | "auto" |
Taal: auto, en, de, fr, es, zh, ja, ko, id, th, vi |
| outputFormat | string | Nee | "txt" |
Uitvoerformaat: txt, srt, vtt |
Example Request
curl -X POST http://localhost:1349/api/v1/tools/audio/transcribe-audio \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@audio.mp3" \
-F 'settings={"language": "en", "outputFormat": "srt"}'
Example Response
Dit is een asynchrone tool. De API retourneert direct 202 Accepted:
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"async": true
}
Volg de voortgang via SSE op GET /api/v1/jobs/{jobId}/progress. Wanneer de taak is voltooid, levert de SSE-stream het eindresultaat met een downloadUrl.
Notes
- Vereist dat het transcription-featurebundel is geïnstalleerd. Retourneert
501met codeFEATURE_NOT_INSTALLED, de ontbrekendefeature,featureNameenestimatedSizeals het bundel niet beschikbaar is. - Gebruikt faster-whisper voor transcriptie. Taal
autodetecteert de gesproken taal automatisch. - De formaten
srtenvttbevatten tijdstempels voor elk segment, geschikt voor ondertitels. - Het formaat
txtretourneert platte tekst zonder tijdstempels. - Dit is een langlopende AI-tool; de verwerkingstijd hangt af van de audiolengte en de serverhardware.