SSE 실시간 진행 스트림
작업 엔드포인트를 반복적으로 폴링하는 대신 Server-Sent Events (SSE) 진행 스트림에 연결하여 실시간 진행률 업데이트와 부분 전사 텍스트를 수신할 수 있습니다.
HTTP 요청
http
GET /v1/file-transcription/transcriptions/{task_id}/stream
Authorization: Bearer sk-oneasr-...
Accept: text/event-streamSSE 이벤트 흐름
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}