SSE-Live-Fortschritts-Stream
Anstatt Aufgabenendpunkte wiederholt abzufragen (Polling), verbinden Sie sich mit dem Server-Sent Events (SSE) Fortschritts-Stream, um Fortschrittsaktualisierungen und partielle Textabschnitte in Echtzeit zu erhalten.
HTTP-Anfrage
http
GET /v1/file-transcription/transcriptions/{task_id}/stream
Authorization: Bearer sk-oneasr-...
Accept: text/event-streamSSE-Ereignisablauf
text
event: progress
data: {"progress": 0.25, "processed_seconds": 180.0, "total_seconds": 720.0}
event: chunk
data: {"chunk_id": 1, "text": "In today's engineering sync...", "start": 0.0, "end": 4.5}
event: completed
data: {"status": "completed", "duration": 720.5}