For the complete documentation index, see llms.txt. This page is also available as Markdown.

Score Task

This features requires a Premium Subscription Run in Postman: Score Task

The Score Task API scores task achievement — how completely a spoken (or written) response fulfills a specific task, independent of its language quality. It complements the language scores from Score Speech: the task score reflects what the speaker communicated, while the language scores reflect how well they said it. The task score is continuous, so a partial response earns a partial score.

Score Task is available by invitation. Email contact@speechace.com to request access.

Task types

Choose a task type with the task_type query parameter. Each type has its own inputs and score range:

Task Type
Inputs
Outputs

describe-image

task_context: A model description of the image which is presented to the speaker. Max length: 1024 chars.

Task score on scale of 0-5.

retell-lecture

task_context: A model summary of the lecture which is presented to the speaker. Max length: 1024 chars.

Task score on scale of 0-5.

answer-question

task-question: The question presented to the user.

Task score on scale of 0-1 where 0 is incorrect and 1 is correct.

Audio or text, with or without language scores

  • user_audio_file or user_audio_text — submit the response as audio, or as a text transcript you already have. With user_audio_text the task score is returned but speech scoring is skipped.

  • include_speech_score — set 1 to also score pronunciation, fluency, grammar, vocabulary, and coherence (as in Score Speech); set 0 for the task score only. It is always 0 when user_audio_text is used.

All task types are available in English (en-us, en-gb), Spanish (es-es, es-mx), and French (fr-fr, fr-ca).

Request Format

The endpoint you use depends on the region of your subscription. For example, for US West the endpoint is https://api.speechace.co.

POST https://api.speechace.co/api/scoring/task/v9/json

Query Parameters

Parameter
Type
Description

key

String

API key issued by Speechace.

dialect

String

This is the dialect in which the speaker will be assessed. Supported values are: en-us, en-gb, fr-fr, fr-ca, es-es, es-mx.

user_id

String

Optional: A unique anonymized identifier (generated by your applications) for the end-user who spoke the audio.

task_type

String

The task_type to score. Supported types are:

  • describe-image

  • retell-lecture

  • answer-question.

Request Body

Parameter
Type
Description

task_context

String

The context or model or model answer for the task presented to the speaker.

Used in the following task-types:

  • describe-image: a model description of the image

  • retell-lecture: a model description of the lecture

This must be provided in the same language as the one being assessed.

task_question

String

The task question presented to the speaker, used in task-type = answer-question.

This must be provided in the same language as the one being assessed.

user_audio_file

File

file with user audio (wav, mp3, m4a, webm, ogg, aiff)

include_speech_score

String

  • Set to 1, to include scoring other aspects of the speech: Pronunciation, Fluency, Grammar, Vocab, Coherence.

  • Set to 0 if you only want to receive the task score only.

user_audio_text

String

A text transcript of the speaker's response.

  • Use this field instead of user_audio_file if you already have a transcript of the user's response and do not wish to re-transcribe an audio.

  • Note: In this case, you will only be able to receive an overall task_score.

Request Examples

Example
Request Parameters
When to use

A. Describe image

task_type=describe-image task_context="<model description of the image>" user_audio_file=answer.wav include_speech_score="1"

Score how well the speaker describes a presented image or chart (0–5).

B. Re-tell lecture

task_type=retell-lecture task_context="<model summary of the lecture>" user_audio_file=answer.wav include_speech_score="1"

Score a spoken summary of a short lecture (0–5).

C. Answer question

task_type=answer-question task_question="<the question asked>" user_audio_file=answer.wav

Score a short spoken answer as correct or incorrect (0 or 1).

To score a written response instead of audio, replace user_audio_file with user_audio_text="&#x3C;transcript>". Only the task score is returned in that case.

Response Examples

The overall task-achievement score is task_score.score; when include_speech_score=1, the language scores appear under speech_score exactly as in Score Speech.

Response fields

  • task_score.type — the task_type that was scored.

  • task_score.score — the task-achievement score (0–5 for describe-image and retell-lecture; 0 or 1 for answer-question).

  • task_score.transcript — the transcript used to score the task.

  • speech_score — present when include_speech_score=1; pronunciation, fluency, grammar, vocabulary, and coherence, interpreted exactly as in Score Speech.

task_context / task_question vs. relevance_context. Relevance is binary and high-level — it judges only whether a response is on-topic (TRUE/FALSE). Task achievement is more nuanced — it scores how well the response addresses the specifics of the task. Use relevance for open questions with no single right answer; use task achievement when a specific, complete answer is expected (e.g. "What does this business chart tell us?").

Last updated