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.
Task types
Choose a task type with the task_type query parameter. Each type has its own inputs and score range:
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_fileoruser_audio_text— submit the response as audio, or as a text transcript you already have. Withuser_audio_textthe task score is returned but speech scoring is skipped.include_speech_score— set1to also score pronunciation, fluency, grammar, vocabulary, and coherence (as in Score Speech); set0for the task score only. It is always0whenuser_audio_textis 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
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
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
0if 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_fileif 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
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).
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— thetask_typethat 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 wheninclude_speech_score=1; pronunciation, fluency, grammar, vocabulary, and coherence, interpreted exactly as in Score Speech.
Last updated