Realtime API
API với chế độ sync phù hợp với các tệp audio ngắn, cho phép xử lý và trả kết quả ngay trong response mà không cần polling. Thời gian phản hồi trung bình ~ 500ms, tối đa 1s.
Last updated
// Example Request
curl -X POST https://<host>/v1/stt \
-H "Authorization: Bearer <token>" \
-H "App-ID: <app-id>" \
-F "[email protected]" \
-F "mode=sync"
// Example Response
{
"transcriptId": "job-uuid-123",
"status": "COMPLETED",
"transcript": "xin chào thế giới",
"utterances": [
{
"text": "xin chào thế giới",
"startTime": 0,
"endTime": 3.2
}
],
"audioDurationSeconds": 4
}