# Word and Sentence pronunciation

{% hint style="info" %}
Use [Score Text/Pronunciation](https://api-docs.speechace.com/api-reference/score-text-pronunciation) for word and sentence pronunciation scoring.
{% endhint %}

To better understand the word and sentence pronunciation scoring capabilities in the Speechace API, consider the demo on the following page: [Say: After lunch I like to walk in the afternoon.](https://app.speechace.co/placement/course/17/quiz/2/1)

Here the user is being asked to pronounce the sentence "After lunch I like to walk in the afternoon". Once the user speaks the sentence, the interface shows the below screen:

<div align="left"><figure><img src="https://1767372289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKaDVy4leVobAfOfVNuic%2Fuploads%2FXw5zvdqRcVsAFKkzBj7Q%2Fimage.png?alt=media&#x26;token=102ae5d2-0d55-4b18-a747-50f94dee435f" alt=""><figcaption></figcaption></figure></div>

As can be observed, the user mostly got the sentence right indicated by the letters marked in <mark style="color:green;">**Green**</mark>. However some parts of the sentence were marked in <mark style="color:red;">**Red**</mark> and the exact syllable and phoneme level mistakes are highlighted to pinpoint the errors in the user's pronunciation.

Such functionality can be built by utilizing the [Score Text/Pronunciation](https://api-docs.speechace.com/api-reference/score-text-pronunciation) function in the Speechace API.&#x20;

The [Score Text/Pronunciation](https://api-docs.speechace.com/api-reference/score-text-pronunciation) function accepts the prompt string, "After lunch I like to walk in the afternoon" along with the corresponding user's audio for the prompt and returns a pronunciation quality score in the range of 0 to 100 along with a detailed breakdown of pronunciation quality of words, syllables and phonemes in the user's audio.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-docs.speechace.com/features/scripted-activities/pronunciation-scoring/word-and-sentence-pronunciation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
