Hello Mohammed Natour and Heba Ghazaly,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you both are having similar issues where Pronunciation Assessment returning a score of 100.0 in all cases.
Before you contact support, based on the guidelines and best practices to resolve this issue, try the following check lists:
- Incorrect audio formats can lead to unexpected results, make sure the audio blob sent in the request matches the required format specifications for the API and it's (must be) in WAV format (.wav) with proper encoding (e.g., PCM, 16-bit, 16kHz, mono).
- Yes, you're using Base64 encoding for the Pronunciation Assessment parameters though, PronAssessmentParams required structured and encoded string in correctly formed and passed in the headers, here is an example:
The header should look like this snippet too:const pronAssessmentParamsJson = `{ "ReferenceText": "${currentWordTxt}", "GradingSystem": "HundredMark", "Dimension": "Comprehensive", "Format": "Detailed" }`; const pronAssessmentParams = Buffer.from(pronAssessmentParamsJson).toString('base64');
{ 'Pronunciation-Assessment': pronAssessmentParams, 'Content-Type': 'audio/wav' }
- Low-quality or silent audio can cause the API to default to high confidence or perfect scores, even when it shouldn't. Make sure it's high-quality audio you're using to ensure that the API can clearly detect speech.
- The general speech-to-text endpoint may not provide proper pronunciation scoring, so you have to use the dedicated pronunciation assessment endpoint in Azure or include the correct settings in the headers. Check this link for limitations and characteristics: https://learn.microsoft.com/en-us/legal/cognitive-services/speech-service/pronunciation-assessment/characteristics-and-limitations-pronunciation-assessment
Therefore, if the API still returns inaccurate scores after verifying the above, consider opening a support request via the Azure portal for more investigation.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.