Skip to content

Commit 06facf0

Browse files
Merge pull request #3429 from eric-urban/eur/content-assessment
how to use content assessment via LLM
2 parents 779e4be + 2892851 commit 06facf0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

articles/ai-services/speech-service/how-to-pronunciation-assessment.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,29 @@ For the speaking scenario (the completeness score isn't applicable):
11181118

11191119
This formula provides a weighted calculation based on the importance of each score, ensuring a comprehensive evaluation of pronunciation.
11201120

1121+
## Content assessment
1122+
1123+
For some recognized speech, you might also want to get content assessment results for vocabulary, grammar, and topic relevance. You can use a chat model such as Azure OpenAI `gpt-4o` to get the content assessment results. For more information about using chat models, see [Azure OpenAI Service models](../openai/concepts/models.md) and the Azure AI Model Inference API [chat completions reference documentation](/rest/api/aifoundry/model-inference/get-chat-completions/get-chat-completions).
1124+
1125+
The user and system messages are used to set the context for the chat model. In the following example, the user message contains the essay to be assessed, and the system message provides instructions on how to evaluate the essay.
1126+
1127+
1128+
```json
1129+
{
1130+
"messages": [
1131+
{
1132+
"role": "system",
1133+
"content": "You are an English teacher and please help to grade a student's essay from vocabulary and grammar and topic relevance on how well the essay aligns with the title, and output format as: {\"vocabulary\": *.*(0-100), \"grammar\": *.*(0-100), \"topic\": *.*(0-100)}."
1134+
},
1135+
{
1136+
"role": "user",
1137+
"content": "Example1: this essay: \"sampleSentence1\" has vocabulary and grammar scores of ** and **, respectively. Example2: this essay: \"sampleSentence2\" has vocabulary and grammar scores of ** and **, respectively. Example3: this essay: \"sampleSentence3\" has vocabulary and grammar scores of ** and **, respectively. The essay for you to score is \"sendText\", and the title is \"topic\". The transcript is from speech recognition so that please first add punctuations when needed, remove duplicates and unnecessary un uh from oral speech, then find all the misuse of words and grammar errors in this essay, find advanced words and grammar usages, and finally give scores based on this information. Please only respond as this format {\"vocabulary\": *.*(0-100), \"grammar\": *.*(0-100)}, \"topic\": *.*(0-100)}. [THE TRANSCRIPT FROM SPEECH RECOGNITION IS REDACTED FOR BREVITY]"
1138+
}
1139+
]
1140+
}
1141+
```
1142+
1143+
11211144
## Related content
11221145

11231146
- Learn about quality [benchmark](https://aka.ms/pronunciationassessment/techblog).

0 commit comments

Comments
 (0)