Transcription Streaming API
stream=true와 response_format=json으로 요청하면 SSE로 최종 전사 결과를 받습니다.
POST /v1/audio/transcriptions
예제의 KITSCH_OPENAI_BASE_URL은 /v1으로 끝나는 Audio API 주소입니다.
curl "$KITSCH_OPENAI_BASE_URL/audio/transcriptions" \
-H "Authorization: Bearer $KITSCH_API_KEY" \
-F "file=@speech.wav" -F "model=kitsch-stt-v1" \
-F "response_format=json" -F "stream=true"
응답
Content-Type: text/event-stream.
event: transcript.text.done
data: {"type":"transcript.text.done","text":"Hello.","usage":{"type":"duration","seconds":1}}
transcript.text.done의 text는 최종 전사문입니다. usage.seconds는 오디오 길이입니다.