---
title: "Submit Audio Compare"
method: POST
path: "/api/available/audio_compare/{task_uid}"
tags: ["tasks"]
---

# Submit Audio Compare

`POST /api/available/audio_compare/{task_uid}`

## Request

- Base URL: `https://api.ncspeech.org` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ncspeech.org/api/available/audio_compare/{task_uid}`
- Auth: HTTP bearer

Persist one rating per audio pair and mark the task Completed.

The number of ratings must equal the number of pairs the task has (any count).
Answers land in audio_compare_answers in the same transaction as the status
flip, so a failed write leaves the task submittable.

## Path parameters

- `task_uid` string, required

## Headers

- `X-Test-UID` string, nullable

## Request body

- AudioCompareSubmission
  - `ratings` integer[], required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ncspeech/apis/advanced-data-collector-api.md) - [All operations](https://skmtc.dev/ncspeech/apis/advanced-data-collector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ncspeech/apis/advanced-data-collector-api/revisions/fec602f8df8c?raw)
