Skip to content

Asynchrone Dateitranskription-API ​

Für lange Dateien (z. B. 2-stündige Konferenzaufzeichnungen, Podcasts oder Video-Tonspuren) verwenden Sie die asynchrone Aufgaben-API von OneASR.


1. Transkriptionsaufgabe erstellen (POST /v1/file-transcription/transcriptions) ​

http
POST /v1/file-transcription/transcriptions
Authorization: Bearer sk-oneasr-...
Content-Type: multipart/form-data

Formulardaten-Parameter: ​

  • file: Audio-/Video-Binärobjekt (mp3, wav, mp4, mkv usw. bis zu 2 GB).
  • model: Ziel-ASR-Modell (faster-whisper, qwen, firered).
  • language: (Optional) ISO-639-1-Sprachcode.
  • enable_diarization: (Optional) true / false für Sprechertrennung.

Antwort: ​

json
{
  "task_id": "task_8f9c1e7a2b3c4d5e",
  "status": "queued",
  "created_at": "2026-09-28T15:00:00Z"
}

2. Aufgabenstatus abfragen (GET /v1/file-transcription/transcriptions/{task_id}) ​

http
GET /v1/file-transcription/transcriptions/task_8f9c1e7a2b3c4d5e
Authorization: Bearer sk-oneasr-...

Antwort (Abgeschlossen): ​

json
{
  "task_id": "task_8f9c1e7a2b3c4d5e",
  "status": "completed",
  "progress": 1.0,
  "result": {
    "text": "Full transcribed speech text...",
    "srt": "1\n00:00:00,000 --> 00:00:04,500\nFull transcribed speech text...\n",
    "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:04.500\nFull transcribed speech text...\n"
  }
}

3. Aufgabe abbrechen (DELETE /v1/file-transcription/transcriptions/{task_id}) ​

http
DELETE /v1/file-transcription/transcriptions/task_8f9c1e7a2b3c4d5e
Authorization: Bearer sk-oneasr-...