Skip to main content
Send audio chunks over HTTP during a consultation. Each request returns the chunk’s transcript; finishing the recording adds the combined text to the session. Requires an existing session and scribe:write. Each chunk must be a complete, independently decodable audio file.

1. Start a recording

Example 201 response:
Save the returned recording_id as CORTEXA_RECORDING_ID.

2. Upload a chunk

Use the actual duration of your local audio file; 30 seconds is illustrative. Example response:
Process the returned transcript while recording continues.

3. Send the remaining chunks

Chunks may arrive out of order. The recording ID and index identify the chunk; the chunk endpoint does not require an Idempotency-Key header.
  • Retrying an index with identical bytes and duration returns its original result.
  • Reusing an index with different content or duration returns 409.
  • After a network or transcription failure, retry the same index and content.
  • Do not split a recording file at arbitrary byte offsets unless every resulting chunk is a valid audio file on its own.

4. Finish the recording

Before finishing, ensure every index from zero to the last uploaded index exists. The server orders the chunks, offsets their timestamps, and appends the assembled transcript to the session once. Example response:
Repeating finish returns the same result without duplicating the transcript. A finished recording accepts retries of existing chunks but rejects new indices. Start a new recording when the clinician needs to continue recording.

Common problems

Read the session transcript, then generate the note.