# Handling relevance response

The [pronunciation](https://api-docs.speechace.com/features/scripted-activities/pronunciation-scoring) and [fluency](https://api-docs.speechace.com/features/scripted-activities/fluency-scoring) interpretation of the key elements in the response of the spoken word or sentence remains the same as previously described. The parameter which we need to notice is the relevance check.&#x20;

**Relevance Check**

If the response is relevant, then `relevance.class` will be `TRUE`:

<div align="left"><figure><img src="https://1767372289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKaDVy4leVobAfOfVNuic%2Fuploads%2FcY0b5dK323XVUlGZNjQn%2Fimage.png?alt=media&#x26;token=09762fed-a2d0-4cab-ba98-d706e238d87f" alt="" width="241"><figcaption></figcaption></figure></div>

If the response is not relevant to the `context`, then `relevance.class` will be `FALSE` and the error will be shown:

<div align="left"><figure><img src="https://1767372289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKaDVy4leVobAfOfVNuic%2Fuploads%2FpCZEW7RquWsqN6HN8m8S%2Fimage.png?alt=media&#x26;token=560f97c1-5c10-47c2-8000-2d212b34f880" alt="" width="563"><figcaption></figcaption></figure></div>

If the response is too similar to the question prompt, then the error will be as follows:

<div align="left"><figure><img src="https://1767372289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKaDVy4leVobAfOfVNuic%2Fuploads%2FU7t3SvO7hJTz1EEEpqPW%2Fimage.png?alt=media&#x26;token=13961c94-f731-4a8b-b92e-d23a309b61ba" alt="" width="563"><figcaption></figcaption></figure></div>

**Other fields**

<table><thead><tr><th width="187">Field</th><th>Description</th></tr></thead><tbody><tr><td>transcript</td><td>The speech-to-text transcript of what the user has said.</td></tr><tr><td>speechace_score</td><td>An overall score on a scale of 0 to 100, in addition to subscores for: Fluency, Pronunciation, Grammar, Vocabulary, Coherence.</td></tr><tr><td>ielts_score</td><td>An overall score on an IELTS scale of 0 to 9.0, in addition to subscores for: Fluency, Pronunciation, Grammar, Vocabulary, Coherence.</td></tr><tr><td>pte_score</td><td>An overall score on a PTE scale of 10 to 90, in addition to subscores for: Fluency, Pronunciation, Grammar, Vocabulary, Coherence.</td></tr><tr><td>cefr_score</td><td>An overall score on CEFR scale of A0 to C2, in addition to subscores for: Fluency, Pronunciation, Grammar, Vocabulary, Coherence.</td></tr><tr><td>toeic_score</td><td>An overall score on an TOEIC scale of 0 to 200, in addition to subscores for: Fluency, Pronunciation, Grammar, Vocabulary, Coherence.</td></tr><tr><td>relevance.class</td><td>TRUE or FALSE indicating whether the response was relevant given the <code>relevance_context</code> passed as input to the API.</td></tr></tbody></table>

{% hint style="info" %}
**Protip:** The `relevance_context` is an optional field and can be included only if the relevance of an audio response needs to be assessed by transcribing the response first and then comparing it to the provided question prompt.
{% endhint %}
