Transcription
Initialise audio transcription
Method: POST
Path: /sessions/{session_id}/restful-segment-transcription
Description: Initialise an audio transcription
Request
POST /sessions/1234567890/restful-segment-transcription
Authorization: Bearer <your_token>Response
{
"recording_id": "123"
}Upload audio to transcribe
Method: POST
Path: /sessions/{session_id}/restful-segment-transcription/{recording_id}:transcribe
Description: Upload an audio chunk to transcribe. Even though it's possible to upload an entire consult audio at once, we recommend splitting the audio every 45s-1min to increase transcription accuracy.
Preferred file types: Most audio file types are supported, however .mp3, .ogg are preferred as they generate better quality transcriptions.
Request
POST /sessions/1234567890/restful-segment-transcription/123:transcribe
Authorization: Bearer <your_token>
Content-Type: multipart/form-data
{
"file": "audio.mp3",
"index": "0"
}Response
{
"is_success": true
}End audio transcription
Method: POST
Path: /sessions/{session_id}/restful-segment-transcription/{recording_id}:finish
Description: Complete an audio transcription
Request
POST /sessions/1234567890/restful-segment-transcription/123:finish
Authorization: Bearer <your_token>Response
{
"is_success": true
}Retrieve transcript
Method: GET
Path: /sessions/{session_id}/transcript
Description: Retrieve the transcript for a session.
Request
GET /sessions/1234567890/transcript
Authorization: Bearer <your_token>Response
{
"transcript": "Transcript text..."
}